Fix absolute paths

This commit is contained in:
xypwn 2020-12-13 12:56:02 +01:00
parent b006238127
commit 57224e549b
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ source "$(dirname $0)/config.sh"
[ ! -e "$(dirname $0)/$OUTDIR" ] && mkdir -p "$(dirname $0)/$OUTDIR"
# Turn paths into absolute ones, if they aren't already, as we will change directories later
[ ! "${SAVEDIR::1}" = "/" ] &&
[ ! "${OUTDIR::1}" = "/" ] &&
OUTDIR="$(readlink -f $(dirname $0)/$OUTDIR)"
[ ! "${YOUTUBE_DL::1}" = "/" ] &&
YOUTUBE_DL="$(readlink -f $(dirname $0)/$YOUTUBE_DL)"