[go: nahoru, domu]

Skip to content

Commit

Permalink
Check to ensure crouton is running on Chromium OS
Browse files Browse the repository at this point in the history
  • Loading branch information
dnschneid committed Aug 7, 2018
1 parent 6d49714 commit 97cf6b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion installer/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ done
shift "$((OPTIND-1))"

# Check against the minimum version of Chromium OS
if ! awk -F= '/_RELEASE_BUILD_NUMBER=/ { exit int($2) < '"${CROS_MIN_VERS:-0}"' }' \
if [ -n "$DOWNLOADONLY" ]; then
:
elif ! grep -q '_RELEASE_BUILD_NUMBER=' /etc/lsb-release 2>/dev/null; then
error 2 "$APPLICATION can only be installed in the Chromium OS dev mode shell."
elif ! awk -F= '/_RELEASE_BUILD_NUMBER=/ { exit int($2) < '"${CROS_MIN_VERS:-0}"' }' \
'/etc/lsb-release' 2>/dev/null; then
error 2 "Your version of Chromium OS is extraordinarily old.
If there are updates pending, please reboot and try again.
Expand Down

0 comments on commit 97cf6b8

Please sign in to comment.