fix: shellcheck errors in ~/bin

This commit is contained in:
AngeD 2023-05-30 18:39:49 +02:00
parent a76f0a9b43
commit f8b873255e
3 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash -e
# shellcheck disable=SC2034
DBUS_SESSION_BUS_ADDRESS= # https://wiki.archlinux.org/title/Podman#Permission_denied:_OCI_permission_denied
CRI=(podman)

View File

@ -73,7 +73,7 @@ while getopts hcCviInar o; do
IMG_OPT='-a'
;;
r)
exec sudo -- "$0" "$(sed 's/r//' <<< "${@:1}")"
echo exec sudo -- "$0" "${@/r/}"
;;
*)
exit 1

View File

@ -1,4 +1,5 @@
#!/bin/bash -e
# shellcheck disable=SC2034
DBUS_SESSION_BUS_ADDRESS= # https://wiki.archlinux.org/title/Podman#Permission_denied:_OCI_permission_denied
CRI=(podman)