Update run.sh
This commit is contained in:
17
run.sh
17
run.sh
@@ -45,14 +45,14 @@ if [ "${1}" == "update" ]; then
|
|||||||
echo -en "\e[1A";
|
echo -en "\e[1A";
|
||||||
echo -e "\e[0K\r ${idsCL[Green]}Update to v${VERS} complete${idsCL[Default]}\n"
|
echo -e "\e[0K\r ${idsCL[Green]}Update to v${VERS} complete${idsCL[Default]}\n"
|
||||||
fi
|
fi
|
||||||
# read -n 1 -p "Do you want to restart PowerWall Services? (y/N): " choice
|
read -n 1 -p "Do you want to restart PowerWall Services? (y/N): " choice
|
||||||
# case "$choice" in
|
case "$choice" in
|
||||||
# [Yy])
|
[Yy])
|
||||||
# echo -e "\n\n${idsCL[Yellow]}Restarting Powerwall services to apply update ..."
|
echo -e "\n\n${idsCL[Yellow]}Restarting Powerwall services to apply update ..."
|
||||||
# ${PW_SCRIPT} service all restart
|
${PW_SCRIPT} service all restart
|
||||||
# ;;
|
;;
|
||||||
# *) echo;;
|
*) echo;;
|
||||||
# esac
|
esac
|
||||||
|
|
||||||
elif [ "${2}" != "q" ]; then
|
elif [ "${2}" != "q" ]; then
|
||||||
echo -en "\e[1A";
|
echo -en "\e[1A";
|
||||||
@@ -67,3 +67,4 @@ fi
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user