projects
/
grml2usb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c405c60
)
grml2iso: drop $WRKDIR if it did not exist before execution
author
Michael Prokop
<mika@grml.org>
Sun, 7 Jun 2009 23:56:57 +0000
(
01:56
+0200)
committer
Michael Prokop
<mika@grml.org>
Sun, 7 Jun 2009 23:56:57 +0000
(
01:56
+0200)
grml2iso
patch
|
blob
|
history
diff --git
a/grml2iso
b/grml2iso
index
f1e966f
..
23b693d
100755
(executable)
--- a/
grml2iso
+++ b/
grml2iso
@@
-78,6
+78,7
@@
# }}}
# create necessary stuff under WRKDIR {{{
+ [ -d "$WRKDIR" ] && WRKDIR_EXISTED='true' || WRKDIR_EXISTED='false'
rm -rf "$WRKDIR/cddir" "$WRKDIR/grub_tmp"
mkdir -p "$WRKDIR/cddir" "$WRKDIR/grub_tmp"
# }}}}
@@
-136,6
+137,7
@@
cd "$ORIG_DIR"
sync
rm -rf "$WRKDIR/cddir" "$WRKDIR/grub_tmp"
+ [[ $WRKDIR_EXISTED = 'false' ]] && rmdir "$WRKDIR"
echo "Generated $ISOFILE"
# }}}