diff options
author | Dan McGee <dan@archlinux.org> | 2007-11-28 09:10:41 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-28 09:10:41 -0600 |
commit | e23b176f3e103fef0f9dffa4b20ae19f48101001 (patch) | |
tree | c62ecd0c6a1033bafb470ac2a224c7ba17eed8fc /makechrootpkg | |
parent | f92e01ed28b062f3451494f002aeba3c53fd8042 (diff) |
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-x | makechrootpkg | 4 |
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" |