diff options
author | makefu <github@syntax-fehler.de> | 2013-11-19 08:35:51 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-11-19 08:35:51 +0100 |
commit | 5788b95fe7834d3049df9de1009f3d8dbc34fea2 (patch) | |
tree | 76675a9579c7c5e269825bfa73d29fe5256b8afb /ship/src/remaster_arch_iso | |
parent | c15a8d15e910a39a641b21df08e13325a0e29293 (diff) | |
parent | 6f956cfe65ee00871bc9be19b2acadabb6638a69 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'ship/src/remaster_arch_iso')
-rwxr-xr-x | ship/src/remaster_arch_iso | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ship/src/remaster_arch_iso b/ship/src/remaster_arch_iso index 046b005b..66d5bc05 100755 --- a/ship/src/remaster_arch_iso +++ b/ship/src/remaster_arch_iso @@ -13,7 +13,7 @@ rootdir=$bdir/root outdir=$bdir/out auto_url=euer.krebsco.de/autoinstall info "bdir is at $bdir" -[ ! -e "$isofile" ] && die "$isofile does not exist,bailing out" +[ ! -e "$isofile" ] && die "$isofile does not exist." esudo "$@" @@ -27,9 +27,7 @@ info "mounting isofile ($isofile)" if is_root;then mount -t iso9660 -o loop,ro $isofile $isomnt else - error "we are not root enough to mount the iso. Bailing Out" - exit 1 - + die 'we are not root enough to mount the iso.' fi defer "info 'unmounting $isomnt';umount $isomnt" |