summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-12-30 00:43:46 -0600
committerRobby Workman <rworkman@slackware.com>2017-12-30 01:16:09 -0600
commitdfb299531d3606b6c8c537ae5881d6296b289653 (patch)
tree9b72d7a9f3ad37a5cebacc6c1226bc3c54066acb
parent4a1885d6aac7f50fef5c2537c8d35ac6d9b007f4 (diff)
downloadslackpkg-dfb299531d3606b6c8c537ae5881d6296b289653.tar.xz
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.
-rw-r--r--files/core-functions.sh3
1 files changed, 3 insertions, 0 deletions
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.