summaryrefslogtreecommitdiffstats
path: root/makechrootpkg
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-28 16:10:41 +0100
committerDan McGee <dan@archlinux.org>2007-11-28 16:10:41 +0100
commite23b176f3e103fef0f9dffa4b20ae19f48101001 (patch)
treec62ecd0c6a1033bafb470ac2a224c7ba17eed8fc /makechrootpkg
parentf92e01ed28b062f3451494f002aeba3c53fd8042 (diff)
downloaddevtools-e23b176f3e103fef0f9dffa4b20ae19f48101001.tar.gz
devtools-e23b176f3e103fef0f9dffa4b20ae19f48101001.tar.xz
Fix some bashisms (but change #! to /bin/bash)
We need to use bash due to the usage of arrays, but we might as well fix some bashisms that were used in the scripts anyways. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 4c26673..1434d2d 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
@@ -76,7 +76,7 @@ fi
[ -d "$chrootdir/rw" ] || mkdir "$chrootdir/rw"
[ -d "$chrootdir/union" ] || mkdir "$chrootdir/union"
-function cleanup ()
+cleanup ()
{
echo "cleaning up unioned mounts"
umount "$chrootdir/union"