summaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-10-08 13:38:15 -0700
committerhagbard <vyosdev@derith.de>2019-10-08 13:38:15 -0700
commit4b3434f8fab3201e7483bff95af71b7a1f51a13c (patch)
treeed06efe2b5586eaea1fa641020161c11e5a4919a /scripts/install
parent9cd2fb4d8d65f60746c4bd0fbf5021b1217f627a (diff)
downloadvyatta-cfg-system-4b3434f8fab3201e7483bff95af71b7a1f51a13c.tar.gz
vyatta-cfg-system-4b3434f8fab3201e7483bff95af71b7a1f51a13c.zip
install-image: T1718 - ISO check in /opt/vyatta/sbin/install-image faulty
Diffstat (limited to 'scripts/install')
-rwxr-xr-xscripts/install/install-image2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image
index dbdd5901..ac4d2dec 100755
--- a/scripts/install/install-image
+++ b/scripts/install/install-image
@@ -150,7 +150,7 @@ set_up_new_iso ()
fi
fi
- if [ ! -f "$NEW_ISO" ] || ! (file $NEW_ISO | grep -q 9660); then
+ if [ ! -f "$NEW_ISO" ] || ! (grep -q ISO9660 $NEW_ISO); then
fail_exit "\"$NEW_ISO\" is not a valid ISO image file."
fi