From 8ed18b5776d8653ecc82f6a22b8c26d1530b5517 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Wed, 3 Aug 2011 16:14:31 +0100 Subject: [PATCH] Avoid running strip on modules if there is no modules directory. This avoids printing an error message and usage statement when using squisher if no modules have been produced. Change-Id: Iadd38518e64f7edf2d4da345143a44970c6f383a Signed-off-by: Pat Thoyts --- tools/squisher | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/squisher b/tools/squisher index 3e7b058c..61a3663b 100755 --- a/tools/squisher +++ b/tools/squisher @@ -134,7 +134,8 @@ $SED -i \ rm -rf $REPACK/ota/recovery # Strip modules -find $REPACK/ota/system/lib/modules -name "*.ko" -print0 | xargs -0 arm-eabi-strip --strip-unneeded +[ -d $REPACK/ota/system/lib/modules ] && \ + find $REPACK/ota/system/lib/modules -name "*.ko" -print0 | xargs -0 arm-eabi-strip --strip-unneeded # Determine what to name the new signed package if [ -z "$CYANOGEN_NIGHTLY" ]; then