summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/chromeos/extract_blobs.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/util/chromeos/extract_blobs.sh b/util/chromeos/extract_blobs.sh
index 669327d3fe..ca0bdeeee6 100755
--- a/util/chromeos/extract_blobs.sh
+++ b/util/chromeos/extract_blobs.sh
@@ -8,9 +8,14 @@ if [ ! -f "$1" ]; then
fi
IMAGE=$1
-# create new dir '$IMAGE-blobs' (less file extension)
-DIR=$(basename $IMAGE)
-DIR="${DIR%.*}-blobs"
+
+if [[ "$2" = "" ]]; then
+ # create new dir '$IMAGE-blobs' (less file extension)
+ DIR=$(basename $IMAGE)
+ DIR="${DIR%.*}-blobs"
+else
+ DIR=$2
+fi
mkdir -p $DIR
if [ -f ./cbfstool ]; then