using THISDIR instead of WORKDIR
[feisty_meow.git] / scripts / system / add_swap_mount.sh
index 5ba4274efc8519daa526cf6f5d019e2c382580a0..b400fcb98f556d52faf28ab2794f439800745dad 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
 
 # auto-find the scripts, since we might want to run this as sudo.
-export WORKDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"  # obtain the script's working directory.
-export FEISTY_MEOW_APEX="$( \cd "$WORKDIR/../.." && \pwd )"
+export THISDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"  # obtain the script's working directory.
+export FEISTY_MEOW_APEX="$( \cd "$THISDIR/../.." && \pwd )"
 source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh"
 
 if [[ $EUID != 0 ]]; then
@@ -17,6 +17,7 @@ SWAP_SIZE="$1"; shift
 
 if [ "$SWAP_INSTANCE" == "--help" ]; then
   echo "\
+$(basename $0):
 This script will add a swap partition for Linux that uses hard drive space for
 swap memory.  This increases the amount of available memory on RAM constrained
 systems.  It accepts two parameters: (1) the instance of the swap file, which