Remove utility check loop

This commit is contained in:
Madis Mägi 2021-02-23 00:36:21 +02:00
parent 9327fe6000
commit 10a35a43e8

View File

@ -9,20 +9,6 @@ TARGET_MOUNTPOINT=/mnt/target
AGENT="Butterknife-Provisioning-Image/0.2"
URL_LOCAL=http://butterknife
#######################################
### Check for presence of utilities ###
#######################################
for util in btrfs jq fdisk find ntfsresize udp-sender udp-receiver ntpdate curl ms-sys mktemp test true sort uniq dig; do
if [ -z "$(which $util)" ]; then
echo "Butterknife was unable to locate $util," \
"are you sure the provisioning image was compiled properly?"
exit 253
else
echo "Found $util..."
fi
done
#for i in $(cat /proc/cmdline); do
# case i in
# bk_debug)