little workaround BSD abspaths
This commit is contained in:
@@ -46,7 +46,7 @@ copy_dir() {
|
||||
chmod --reference="$1" "$2"
|
||||
chown --reference="$1" "$2"
|
||||
mysize=$( getsize "$1" )
|
||||
TGT_ABS=$( readlink -f "$2" )
|
||||
TGT_ABS=$( abs-path "$2" )
|
||||
pushd "$1" &> /dev/null
|
||||
tar -c "." | pv -s $mysize | tar -x --strip-components=1 -C "$TGT_ABS"
|
||||
popd &> /dev/null
|
||||
|
||||
Reference in New Issue
Block a user