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 Mar 3, 2020
1 parent 0e10c10 commit d642917
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 d642917

Please sign in to comment.