Revert "functions.sh : generic podman_unshare ?"

This reverts commit 2a7040758c.
This commit is contained in:
Gitouche 2023-07-28 17:01:12 +02:00
parent 2a7040758c
commit d98714cab4

View file

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