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

@@ -41,7 +41,7 @@ mkdir -p "$SAFELOC"
now=$( date -Idate )
for d in "${FOLDERS[@]}"; do
if [[ ! -e "$d" ]]; then continue; fi
path=$( readlink -f "$d" )
path=$( abs-path "$d" )
dir=$( dirname "$path" )
if [[ "$VERBOSE" -eq 1 ]]; then echo "$SAFELOC/$now/$path"; fi
if [[ -e "$SAFELOC/$now/$path" ]]; then file-version $QUIET "$SAFELOC/$now/$path"; fi