Skip to content

Commit 4ef848a

Browse files
fixing
1 parent 159d8a5 commit 4ef848a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

fs-manager/fs-manager

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)