Skip to content

Commit

Permalink
chore: support spaces in folder names (components package build) (#5512)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhassel authored and joshblack committed Mar 10, 2020
1 parent f126171 commit bf4523d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/components/tools/copy-vendor-styles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit bf4523d

Please sign in to comment.