From dfb299531d3606b6c8c537ae5881d6296b289653 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sat, 30 Dec 2017 00:43:46 -0600 Subject: [PATCH] core-functions.sh: Create $WORKDIR before using it This should never be an issue on a properly installed system (assuming slackpkg is installed on the system), but it doesn't hurt anything either to be safe. --- files/core-functions.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/core-functions.sh b/files/core-functions.sh index 919bf80..bf5333a 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -58,6 +58,9 @@ spinning() { # function system_setup() { + # Create $WORKDIR just in case + mkdir -p "$WORKDIR" + # Set LOCAL if mirror isn't through network # If mirror is through network, select the command to fetch # files and packages from there.