diff --git a/setup.sh b/setup.sh index 193bc93..02abbee 100644 --- a/setup.sh +++ b/setup.sh @@ -99,13 +99,12 @@ echo -e "\n# Thank you for installing upd. Have fun !" && exit 0 # Updaate && Check Version -git pull setup_ins_version=` awk 'NR==2 {print $3}' "$setup_dir_bin/$setup_file_bin" 2>/dev/null` setup_new_version=` awk 'NR==2 {print $3}' "$PWD$setup_dir_bin/$setup_file_bin"` -[[ "$setup_ins_version" == "$setup_ins_version" ]] \ +[[ "$setup_ins_version" == "$setup_new_version" ]] \ && echo "$setup_file_bin is already up to date" \ && unset ${!setup_@} \ && exit 0 diff --git a/var/lib/upd/setup.sh b/var/lib/upd/setup.sh index 193bc93..02abbee 100644 --- a/var/lib/upd/setup.sh +++ b/var/lib/upd/setup.sh @@ -99,13 +99,12 @@ echo -e "\n# Thank you for installing upd. Have fun !" && exit 0 # Updaate && Check Version -git pull setup_ins_version=` awk 'NR==2 {print $3}' "$setup_dir_bin/$setup_file_bin" 2>/dev/null` setup_new_version=` awk 'NR==2 {print $3}' "$PWD$setup_dir_bin/$setup_file_bin"` -[[ "$setup_ins_version" == "$setup_ins_version" ]] \ +[[ "$setup_ins_version" == "$setup_new_version" ]] \ && echo "$setup_file_bin is already up to date" \ && unset ${!setup_@} \ && exit 0