File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ function quick_install()
110110 exit 3
111111 else
112112 apt update; apt upgrade -y
113- __check_for --force git
113+ __check_for git
114114 cur_dir=" $( pwd) "
115115 if ! [ -d $CONFIG_DIR ]; then
116116 mkdir -pv $CONFIG_DIR >> /dev/null
@@ -144,13 +144,10 @@ function __check_for()
144144 if [ $# -ge 1 ]; then
145145 for i in " $@ " ; do
146146 if command -v " ${in_cache[@]} " >> /dev/null ; then
147- if [[ " ${in_cache[1]} " != --force ]]; then
148- msg " [${RED} FAILED ${RST} ] Unable to find $i try using \" apt install ${i} \" "
149- (( x= x+ 1 ))
150- else
151147 msg " [${GREEN} Executing ${RST} ] sudo apt install -y $i "
152- sudo apt install -y " $i "
153- fi
148+ sudo apt install -y " $i " || {
149+ (( x= x+ 1 ))
150+ }
154151 fi
155152 done
156153
You can’t perform that action at this time.
0 commit comments