mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-17 17:11:47 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
339b4c578a
commit
551da5ded3
@ -3,6 +3,8 @@
|
||||
|
||||
source ../.pct-helpers
|
||||
|
||||
PATH=$PATH:$(dirname "$(pwd)")
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
|
||||
13
pct-push-r
13
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user