aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-18 00:17:17 -0500
committerDave Reisner <d@falconindy.com>2010-01-18 00:17:17 -0500
commit56533c9f8d6547b253fd0644fd0d12784b05ea29 (patch)
treee9a63dd22692712e1f6f5518d93cd2aeb88703d3
parent40ca97e0674202f00a1e6401e6c52a03b07f6fa6 (diff)
downloadsquashfu-56533c9f8d6547b253fd0644fd0d12784b05ea29.tar.gz
Tone down die() to only show colons
-rwxr-xr-xsquashfu24
1 files changed, 9 insertions, 15 deletions
diff --git a/squashfu b/squashfu
index 9830965..08ced48 100755
--- a/squashfu
+++ b/squashfu
@@ -16,7 +16,7 @@ info () {
}
die () {
- printf '\033[1;31mFATAL ::\033[1;m %s\n' "$*" >&2
+ printf '\033[1;31m::\033[1;m %s\n' "$*" >&2
exit 1
}
@@ -398,28 +398,22 @@ HELP
while getopts :BCQR:Uc: opt; do
case $opt in
B)
- action=backup
- ;;
+ action=backup ;;
C)
- action=resquash_now
- ;;
+ action=resquash_now ;;
Q)
- action=report
- ;;
+ action=report ;;
R)
- action="rollback $OPTARG"
- ;;
+ action="rollback $OPTARG" ;;
U)
- action=unmount
- ;;
+ action=unmount ;;
c)
- [[ -f $OPTARG ]] && source $OPTARG
- ;;
+ [[ -f $OPTARG ]] && source $OPTARG ;;
\:)
- echo "Argument missing from -$OPTARG"
+ die "Argument missing from -$OPTARG"
usage ;;
\?)
- echo "Unrecognized option -$OPTARG"
+ die "Unrecognized option -$OPTARG"
usage ;;
esac >&2
done