Skip to content

Commit bf4523d

Browse files
janhasseljoshblack
authored andcommitted
chore: support spaces in folder names (components package build) (#5512)
1 parent f126171 commit bf4523d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/components/tools/copy-vendor-styles.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ root_path=$PWD
2121
echo "Cleaning vendor directory..."
2222

2323
VENDOR_DIR="$PWD/src/globals/scss/vendor"
24-
rm -rf $VENDOR_DIR
24+
rm -rf "$VENDOR_DIR"
2525

2626
for package in node_modules/@carbon/*; do
2727
PKG_NAME="@carbon/$(basename $package)"
@@ -30,8 +30,8 @@ for package in node_modules/@carbon/*; do
3030

3131
if [ -d "$SCSS_FILES" ]; then
3232
echo "Copying scss files for package: $PKG_NAME to $TARGET_DIR"
33-
mkdir -p $TARGET_DIR
34-
cp -R $SCSS_FILES $TARGET_DIR
33+
mkdir -p "$TARGET_DIR"
34+
cp -R $SCSS_FILES "$TARGET_DIR"
3535
fi
3636
done
3737

@@ -44,8 +44,8 @@ for symlink in $(find ../../node_modules/@carbon -type l -maxdepth 1); do
4444

4545
if [ -d "$SCSS_FILES" ]; then
4646
echo "Copying scss files for package: $PKG_NAME to $TARGET_DIR"
47-
mkdir -p $TARGET_DIR
48-
cp -R $SCSS_FILES $TARGET_DIR
47+
mkdir -p "$TARGET_DIR"
48+
cp -R $SCSS_FILES "$TARGET_DIR"
4949
fi
5050
done
5151

0 commit comments

Comments
 (0)