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