mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-18 01:21: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
|
source ../.pct-helpers
|
||||||
|
|
||||||
|
PATH=$PATH:$(dirname "$(pwd)")
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
13
pct-push-r
13
pct-push-r
@ -23,11 +23,22 @@ if [[ $# < 3 ]] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
IFS=$'\n'
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
id=$1
|
id=$1
|
||||||
from=$2
|
from=$2
|
||||||
to=$3
|
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))
|
dirs=($(find "$from" -type d))
|
||||||
for dir in "${dirs[@]}" ; do
|
for dir in "${dirs[@]}" ; do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user