diff --git a/functions.sh b/functions.sh index d67f8f9..1b61794 100644 --- a/functions.sh +++ b/functions.sh @@ -53,13 +53,7 @@ sed_in_place () { fi } -# podman_unshare prefixed -podman_unshare_sed_in_place () { - podman_unshare='podman unshare' - sed_in_place "${1}" "${2}" "${3}" -} - -# sed or die trying +# sed or die trying multiline! sed_in_place_multiline () { ${podman_unshare} grep -z -q "${1}" "${3}" if [ $? -eq 0 ]; then @@ -70,10 +64,9 @@ sed_in_place_multiline () { fi } -# podman_unshare prefixed -podman_unshare_sed_in_place_multiline () { - podman_unshare='podman unshare' - sed_in_place_multiline "${1}" "${2}" "${3}" +# generic podman_unshare +podman_unshare () { + podman unshare "$@" } # check: systemd unit exists