projects
/
grml2usb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5291b14
)
Get rid of bashism
author
Michael Prokop
<mika@grml.org>
Fri, 16 Mar 2007 13:44:15 +0000
(14:44 +0100)
committer
Michael Prokop
<mika@grml.org>
Fri, 16 Mar 2007 13:44:15 +0000
(14:44 +0100)
debian/changelog
patch
|
blob
|
history
grml2usb
patch
|
blob
|
history
diff --git
a/debian/changelog
b/debian/changelog
index
70b47fd
..
961101b
100644
(file)
--- a/
debian/changelog
+++ b/
debian/changelog
@@
-1,3
+1,9
@@
+grml2usb (0.7-4) unstable; urgency=low
+
+ * Get rid of bashism, thanks for reporting - Paul Weaver!
+
+ -- Michael Prokop <mika@grml.org> Fri, 16 Mar 2007 14:43:49 +0100
+
grml2usb (0.7-3) unstable; urgency=low
* The manpage was just a template, added the missing documentation
grml2usb (0.7-3) unstable; urgency=low
* The manpage was just a template, added the missing documentation
diff --git
a/grml2usb
b/grml2usb
index
f6815ef
..
64d95eb
100755
(executable)
--- a/
grml2usb
+++ b/
grml2usb
@@
-4,7
+4,7
@@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change:
Mon Nov 06 23:48:26 CET 2006
[mika]
+# Latest change:
Fre Mär 16 14:43:44 CET 2007
[mika]
################################################################################
# colors {{{
################################################################################
# colors {{{
@@
-24,13
+24,13
@@
echo 1>&2 "${RED}Error: syslinux is not available. Please install it before running this script.${NORMAL}" ; exit 2
fi
echo 1>&2 "${RED}Error: syslinux is not available. Please install it before running this script.${NORMAL}" ; exit 2
fi
- if [ "$
UID
" != 0 ]; then
+ if [ "$
(id -u)
" != 0 ]; then
echo 1>&2 "${RED}Error: please run this script with uid 0 (root).${NORMAL}" ; exit 1
fi
# }}}
# set variables {{{
echo 1>&2 "${RED}Error: please run this script with uid 0 (root).${NORMAL}" ; exit 1
fi
# }}}
# set variables {{{
- if [
[ $DEBUG -gt 0 ]
]; then
+ if [
-n "$DEBUG"
]; then
# set -x
debugit(){
echo $*
# set -x
debugit(){
echo $*
@@
-41,7
+41,7
@@
}
fi
}
fi
- if [ "$1" =
=
"uninstall" ] ; then
+ if [ "$1" = "uninstall" ] ; then
UNINSTALL=1
fi
UNINSTALL=1
fi
@@
-183,7
+183,7
@@
Try to call it manually via 'syslinux /dev/sda1' if you installed grml to /dev/s
# main program {{{
trap bailout 1 2 3 15
# main program {{{
trap bailout 1 2 3 15
-if [
[ $# != 2 ]
]; then
+if [
"$#" != 2
]; then
usage ; exit 4
fi
usage ; exit 4
fi