little workaround BSD abspaths

This commit is contained in:
ville rantanen
2019-04-12 13:46:41 +03:00
parent 5678c7e8f9
commit 93b02c5161
7 changed files with 12 additions and 5 deletions

View File

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