diff options
author | 2022-03-15 15:57:04 +0530 | |
---|---|---|
committer | 2022-03-15 15:57:04 +0530 | |
commit | ca6527e70cc125383c2b2b85f741b1f4fb92ab1b (patch) | |
tree | 6771a8b2b007ca4b256d368576265893f156e29d | |
parent | 4e5d83326d0094b2c344abbf598c14d04c28260b (diff) | |
download | shopno-os-log-sync-ca6527e70cc125383c2b2b85f741b1f4fb92ab1b.tar.gz shopno-os-log-sync-ca6527e70cc125383c2b2b85f741b1f4fb92ab1b.zip |
fixing issue in install file
-rwxr-xr-x | install | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -2,9 +2,9 @@ echo "[*] Thanks for landing here." sleep 2s -echo "[*] First off all Watcher uses very less resources like alomost 10 MBs." +echo "[*] First off all Watcher uses very less resources like almost 10 MBs." sleep 3s -echo "[*] Also some of the features are in development like AFK" +echo "[*] Also some of the features are in development AFK is one of them" sleep 2s echo "[*] So let's start installtion process... " @@ -19,9 +19,12 @@ mkdir -p ~/.cache/Watcher/Analysis/ # checking wherther is ~/.xprofile is sourced in ~/.xintrc or not count1=$(grep -c "xprofile" $HOME/.xinitrc) -echo $count1 -# checking whether user have used watcher before -count2=$(grep -c "watcher --start" $HOME/.xprofile) +# checking whether user have used watcher before as well as xprofile filed setup or not +if [ -f "$HOME/.xprofile" ]; then + count2=$(grep -c "watcher --start" $HOME/.xprofile) +else + count2=0 +fi if [[ $count1 > 0 ]];then if [[ $count2 = 0 ]];then |