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