Skip to content

Commit 8983d4d

Browse files
author
hastmu
committed
add more infos for prerequisits #8
1 parent 13bfb20 commit 8983d4d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

install.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ BINS["printf"]=0
1616
BINS["date"]=0
1717
BINS["md5sum"]=0
1818

19+
SUGGESTED_DEBS="coreutils grep sed wget avahi-utils"
20+
1921
for pitem in ${PATH//:/ }
2022
do
2123
for item in "${!BINS[@]}"
2224
do
2325
if [ -x "${pitem}/${item}" ]
24-
then
26+
then
2527
BINS[${item}]="${pitem}/${item}"
2628
fi
2729
done
@@ -38,7 +40,13 @@ do
3840
notfound=1
3941
fi
4042
done
41-
[ ${notfound} -eq 1 ] && exit 1
43+
44+
if [ ${notfound} -eq 1 ]
45+
then
46+
echo "Some items are missing, you may find them with:"
47+
echo "sudo apt install -y ${SUGGESTED_DEBS}"
48+
exit 1
49+
fi
4250

4351
TARGET="/usr/local/bin/apt-proxy-detect.sh"
4452
# download latest

0 commit comments

Comments
 (0)