From 551da5ded381bf9e438deedfd2cdf7df7e66f37c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 30 Dec 2023 18:05:58 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- gate-traefik/make.sh | 2 ++ pct-push-r | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gate-traefik/make.sh b/gate-traefik/make.sh index ceefabf..a5143b7 100644 --- a/gate-traefik/make.sh +++ b/gate-traefik/make.sh @@ -3,6 +3,8 @@ source ../.pct-helpers +PATH=$PATH:$(dirname "$(pwd)") + #---------------------------------------------------------------------- diff --git a/pct-push-r b/pct-push-r index 2f25225..8cdf615 100644 --- a/pct-push-r +++ b/pct-push-r @@ -23,11 +23,22 @@ if [[ $# < 3 ]] ; then exit 1 fi +IFS=$'\n' + + +#---------------------------------------------------------------------- + id=$1 from=$2 to=$3 -IFS=$'\n' +# get from path relative to working directory... +if [[ ${from:0:1} != '/' ]] ; then + from="$(pwd)/${from}" +fi + + +#---------------------------------------------------------------------- dirs=($(find "$from" -type d)) for dir in "${dirs[@]}" ; do