From 08706120bb6c4fc7a98b6ab247f3bfd722ec9b3b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 15 Mar 2015 05:12:11 +0000 Subject: [PATCH] scripts: fix ubinize-image on OS X MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas SVN-Revision: 44761 --- scripts/ubinize-image.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/ubinize-image.sh b/scripts/ubinize-image.sh index 6762c22bc4..b87cbb48dc 100755 --- a/scripts/ubinize-image.sh +++ b/scripts/ubinize-image.sh @@ -98,7 +98,11 @@ if [ ! -x "$ubinize" ]; then exit 1 fi -ubinizecfg="$( mktemp )" +ubinizecfg="$( mktemp 2> /dev/null )" +if [ -z "$ubinizecfg" ]; then + # try OSX signature + ubinizecfg="$( mktemp -t 'ubitmp' )" +fi ubilayout "$ubootenv" "$rootfs" "$kernel" > "$ubinizecfg" cat "$ubinizecfg" @@ -108,4 +112,3 @@ err="$?" rm "$ubinizecfg" exit $err - -- 2.30.2