tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-12-30 18:05:58 +03:00
parent 339b4c578a
commit 551da5ded3
2 changed files with 14 additions and 1 deletions

View File

@ -3,6 +3,8 @@
source ../.pct-helpers
PATH=$PATH:$(dirname "$(pwd)")
#----------------------------------------------------------------------

View File

@ -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