You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/install_flowbat_ubuntu.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,14 @@ ask() {
38
38
if [ "$1"="--update" ];then
39
39
echo"$(tput setaf 6)This script will install flowbat updates automatically. If it is not up-to-date, it will require a FlowBAT restart.$(tput sgr0)"
40
40
if ask "$(tput setaf 3)Are you sure you want to update?$(tput sgr0)";then
41
-
cd"$workingDir"/FlowBAT/
41
+
if [ -d"$workingDir/FlowBAT/" ];then
42
+
cd"$workingDir"/FlowBAT/
42
43
git pull
43
44
exit
45
+
else
46
+
echo"$(tput setaf 1)There doesn't seem to be a FlowBAT installation located in this directory. Run this script from the location where FlowBAT was installed. Exiting.$(tput sgr0)"
0 commit comments