Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: src/scripts/common.sh

Issue 1211001: Update enter_chroot.sh to exit with error messages when mount/unmount fails. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/scripts/enter_chroot.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Common constants for build scripts 5 # Common constants for build scripts
6 # This must evaluate properly for both /bin/bash and /bin/sh 6 # This must evaluate properly for both /bin/bash and /bin/sh
7 7
8 # All scripts should die on error unless commands are specifically excepted 8 # All scripts should die on error unless commands are specifically excepted
9 # by prefixing with '!' or surrounded by 'set +e' / 'set -e'. 9 # by prefixing with '!' or surrounded by 'set +e' / 'set -e'.
10 # TODO: Re-enable this once shflags is less prone to dying. 10 # TODO: Re-enable this once shflags is less prone to dying.
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 V_RED="\e[31m" 281 V_RED="\e[31m"
282 V_YELLOW="\e[33m" 282 V_YELLOW="\e[33m"
283 283
284 function warn { 284 function warn {
285 echo -e "${V_YELLOW}Warning..: $1${V_VIDOFF}" 285 echo -e "${V_YELLOW}Warning..: $1${V_VIDOFF}"
286 } 286 }
287 287
288 function error { 288 function error {
289 echo -e "${V_RED}Error....: $1${V_VIDOFF}" 289 echo -e "${V_RED}Error....: $1${V_VIDOFF}"
290 } 290 }
291
292 function die {
293 error "$1"
294 exit 1
295 }
OLDNEW
« no previous file with comments | « no previous file | src/scripts/enter_chroot.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698