Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support spaces in folder names (components package build) #5512

Merged
merged 7 commits into from
Mar 3, 2020
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