Chekching value for script_dir variable
This commit is contained in:
@@ -8,6 +8,13 @@ pause() {
|
||||
read -rp "Press Enter to continue..."
|
||||
}
|
||||
|
||||
debmess(){
|
||||
$debdescription="$1"
|
||||
echo "DEBUG MESSAGE: $debdescription"
|
||||
echo "Press enter to continue..."
|
||||
read debmess
|
||||
}
|
||||
|
||||
select_user() {
|
||||
while true; do
|
||||
echo "----------------------------"
|
||||
@@ -85,7 +92,8 @@ enabledfolder="$mainfolder/scripts-enabled"
|
||||
removedfolder="$mainfolder/scripts-removed"
|
||||
|
||||
script_dir="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
echo $script_dir
|
||||
debmess() "Checking value for \$script_dir variable."
|
||||
# ========================
|
||||
# CREATE DIRECTORIES
|
||||
# ========================
|
||||
@@ -119,10 +127,10 @@ else
|
||||
fi
|
||||
|
||||
# ========================
|
||||
# COPY MAIN STRUCTURE
|
||||
# COPY NEEDED SCRIPTS
|
||||
# ========================
|
||||
cp -r "$script_dir/../scripts-needed/*" "$neededfolder/"
|
||||
echo "[ Main folder installed ]"
|
||||
|
||||
echo "[ Main logic scripts installed ]"
|
||||
|
||||
# ========================
|
||||
# COPY DEFAULT SCRIPTS
|
||||
|
||||
Reference in New Issue
Block a user