fix: testing setup
This commit is contained in:
parent
687c4353bb
commit
90d4e22ea4
3
setup.sh
3
setup.sh
|
@ -99,13 +99,12 @@ echo -e "\n# Thank you for installing upd. Have fun !"
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
||||||
# Updaate && Check Version
|
# Updaate && Check Version
|
||||||
git pull
|
|
||||||
setup_ins_version=`
|
setup_ins_version=`
|
||||||
awk 'NR==2 {print $3}' "$setup_dir_bin/$setup_file_bin" 2>/dev/null`
|
awk 'NR==2 {print $3}' "$setup_dir_bin/$setup_file_bin" 2>/dev/null`
|
||||||
setup_new_version=`
|
setup_new_version=`
|
||||||
awk 'NR==2 {print $3}' "$PWD$setup_dir_bin/$setup_file_bin"`
|
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" \
|
&& echo "$setup_file_bin is already up to date" \
|
||||||
&& unset ${!setup_@} \
|
&& unset ${!setup_@} \
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
|
@ -99,13 +99,12 @@ echo -e "\n# Thank you for installing upd. Have fun !"
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
||||||
# Updaate && Check Version
|
# Updaate && Check Version
|
||||||
git pull
|
|
||||||
setup_ins_version=`
|
setup_ins_version=`
|
||||||
awk 'NR==2 {print $3}' "$setup_dir_bin/$setup_file_bin" 2>/dev/null`
|
awk 'NR==2 {print $3}' "$setup_dir_bin/$setup_file_bin" 2>/dev/null`
|
||||||
setup_new_version=`
|
setup_new_version=`
|
||||||
awk 'NR==2 {print $3}' "$PWD$setup_dir_bin/$setup_file_bin"`
|
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" \
|
&& echo "$setup_file_bin is already up to date" \
|
||||||
&& unset ${!setup_@} \
|
&& unset ${!setup_@} \
|
||||||
&& exit 0
|
&& exit 0
|
||||||
|
|
Loading…
Reference in New Issue