From e23b176f3e103fef0f9dffa4b20ae19f48101001 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 28 Nov 2007 09:10:41 -0600 Subject: 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 --- makechrootpkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'makechrootpkg') 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" -- cgit v1.2.3-24-g4f1b