+grml2usb (0.9.20) unstable; urgency=low
+
+ * tarball.sh: do not use $UID but use $(id -u) instead so it proberly
+ works with dash and make sure to escape "$0". Thanks to Stefan Weiss!
+
+ -- Michael Prokop <mika@grml.org> Wed, 25 Nov 2009 00:47:36 +0100
+
grml2usb (0.9.19) unstable; urgency=low
[ Ulrich Dangel ]
import glob
# global variables
-PROG_VERSION = "0.9.19"
+PROG_VERSION = "0.9.20"
MOUNTED = set() # register mountpoints
TMPFILES = set() # register tmpfiles
DATESTAMP = time.mktime(datetime.datetime.now().timetuple()) # unique identifier for syslinux.cfg
import datetime, logging, os, re, subprocess, sys, tempfile, time, os.path
# global variables
-PROG_VERSION = "0.9.19"
+PROG_VERSION = "0.9.20"
MOUNTED = set() # register mountpoints
TMPFILES = set() # register tmpfiles
DATESTAMP = time.mktime(datetime.datetime.now().timetuple()) # unique identifier for syslinux.cfg
set -e
-if [ "\$UID" != 0 ] ; then
- echo "Error: become root before starting $0" >& 2
+if [ \$(id -u) != 0 ] ; then
+ echo "Error: become root before starting \$0" >& 2
exit 1
fi
set -e
-if [ "\$UID" != 0 ] ; then
- echo "Error: become root before starting $0" >& 2
+if [ \$(id -u) != 0 ] ; then
+ echo "Error: become root before starting \$0" >& 2
exit 1
fi