Update helper.sh
This commit is contained in:
parent
c3ee00d2c8
commit
899235786d
1 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,9 @@ function update_menu() {
|
||||||
case "${yn}" in
|
case "${yn}" in
|
||||||
Y|y)
|
Y|y)
|
||||||
run "update_helper_script"
|
run "update_helper_script"
|
||||||
|
if [ ! -x "$HELPER_SCRIPT_FOLDER"/helper.sh ]; then
|
||||||
|
chmod +x "$HELPER_SCRIPT_FOLDER"/helper.sh >/dev/null 2>&1
|
||||||
|
fi
|
||||||
break;;
|
break;;
|
||||||
N|n)
|
N|n)
|
||||||
break;;
|
break;;
|
||||||
|
@ -65,6 +68,9 @@ function update_menu() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ ! -L /usr/bin/helper ]; then
|
||||||
|
ln -sf "$HELPER_SCRIPT_FOLDER"/helper.sh /usr/bin/helper > /dev/null 2>&1
|
||||||
|
fi
|
||||||
rm -rf /root/.cache
|
rm -rf /root/.cache
|
||||||
set_paths
|
set_paths
|
||||||
set_permissions
|
set_permissions
|
||||||
|
|
Loading…
Add table
Reference in a new issue