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.
This commit is contained in:
Robby Workman 2017-12-30 00:43:46 -06:00
parent 4a1885d6aa
commit dfb299531d

View file

@ -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.