From d64291771f7b5301a2d3154f5691936905f49f88 Mon Sep 17 00:00:00 2001 From: Jan Hassel Date: Wed, 4 Mar 2020 00:47:36 +0100 Subject: [PATCH] chore: support spaces in folder names (components package build) (#5512) --- packages/components/tools/copy-vendor-styles.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/components/tools/copy-vendor-styles.sh b/packages/components/tools/copy-vendor-styles.sh index d45c1bc34e45..b72e36e5360d 100755 --- a/packages/components/tools/copy-vendor-styles.sh +++ b/packages/components/tools/copy-vendor-styles.sh @@ -21,7 +21,7 @@ root_path=$PWD echo "Cleaning vendor directory..." VENDOR_DIR="$PWD/src/globals/scss/vendor" -rm -rf $VENDOR_DIR +rm -rf "$VENDOR_DIR" for package in node_modules/@carbon/*; do PKG_NAME="@carbon/$(basename $package)" @@ -30,8 +30,8 @@ for package in node_modules/@carbon/*; do if [ -d "$SCSS_FILES" ]; then echo "Copying scss files for package: $PKG_NAME to $TARGET_DIR" - mkdir -p $TARGET_DIR - cp -R $SCSS_FILES $TARGET_DIR + mkdir -p "$TARGET_DIR" + cp -R $SCSS_FILES "$TARGET_DIR" fi done @@ -44,8 +44,8 @@ for symlink in $(find ../../node_modules/@carbon -type l -maxdepth 1); do if [ -d "$SCSS_FILES" ]; then echo "Copying scss files for package: $PKG_NAME to $TARGET_DIR" - mkdir -p $TARGET_DIR - cp -R $SCSS_FILES $TARGET_DIR + mkdir -p "$TARGET_DIR" + cp -R $SCSS_FILES "$TARGET_DIR" fi done