From e9d20d6969eaf92744a16726423e7a1ef51e061a Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Fri, 28 Jan 2022 13:55:07 +0100 Subject: [PATCH] _podman_common : utilisation de realpath --- _podman-common/00_status_pod.sh | 2 +- _podman-common/20_enable_pod.sh | 2 +- _podman-common/30_start_pod.sh | 2 +- _podman-common/40_stop_pod.sh | 2 +- _podman-common/70_disable_pod.sh | 2 +- _podman-common/80_destroy_pod.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_podman-common/00_status_pod.sh b/_podman-common/00_status_pod.sh index 7160c32..d2b8cbb 100755 --- a/_podman-common/00_status_pod.sh +++ b/_podman-common/00_status_pod.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -ABSDIR="$( dirname "$(readlink -f -- "$0")" )" +ABSDIR="$( dirname "$(realpath -s -- "$0")" )" source ${ABSDIR}/../functions.sh source ${ABSDIR}/vars.sh diff --git a/_podman-common/20_enable_pod.sh b/_podman-common/20_enable_pod.sh index e64292c..6cb5560 100755 --- a/_podman-common/20_enable_pod.sh +++ b/_podman-common/20_enable_pod.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -ABSDIR="$( dirname "$(readlink -f -- "$0")" )" +ABSDIR="$( dirname "$(realpath -s -- "$0")" )" source ${ABSDIR}/../functions.sh source ${ABSDIR}/vars.sh diff --git a/_podman-common/30_start_pod.sh b/_podman-common/30_start_pod.sh index d2c0a2e..fbdb2c1 100755 --- a/_podman-common/30_start_pod.sh +++ b/_podman-common/30_start_pod.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -ABSDIR="$( dirname "$(readlink -f -- "$0")" )" +ABSDIR="$( dirname "$(realpath -s -- "$0")" )" source ${ABSDIR}/../functions.sh source ${ABSDIR}/vars.sh diff --git a/_podman-common/40_stop_pod.sh b/_podman-common/40_stop_pod.sh index 5c29c2a..bb59c71 100755 --- a/_podman-common/40_stop_pod.sh +++ b/_podman-common/40_stop_pod.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -ABSDIR="$( dirname "$(readlink -f -- "$0")" )" +ABSDIR="$( dirname "$(realpath -s -- "$0")" )" source ${ABSDIR}/../functions.sh source ${ABSDIR}/vars.sh diff --git a/_podman-common/70_disable_pod.sh b/_podman-common/70_disable_pod.sh index 874ef25..ac07faf 100755 --- a/_podman-common/70_disable_pod.sh +++ b/_podman-common/70_disable_pod.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -ABSDIR="$( dirname "$(readlink -f -- "$0")" )" +ABSDIR="$( dirname "$(realpath -s -- "$0")" )" source ${ABSDIR}/../functions.sh source ${ABSDIR}/vars.sh diff --git a/_podman-common/80_destroy_pod.sh b/_podman-common/80_destroy_pod.sh index f4bea63..d914c41 100755 --- a/_podman-common/80_destroy_pod.sh +++ b/_podman-common/80_destroy_pod.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -ABSDIR="$( dirname "$(readlink -f -- "$0")" )" +ABSDIR="$( dirname "$(realpath -s -- "$0")" )" source ${ABSDIR}/../functions.sh source ${ABSDIR}/vars.sh