From 57224e549bc99796467b1f045635f6614a8d6a09 Mon Sep 17 00:00:00 2001 From: xypwn Date: Sun, 13 Dec 2020 12:56:02 +0100 Subject: [PATCH] Fix absolute paths --- southpark-downloader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/southpark-downloader.sh b/southpark-downloader.sh index 3241e85..68c31a3 100755 --- a/southpark-downloader.sh +++ b/southpark-downloader.sh @@ -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)"