Skip to content

Commit 289432b

Browse files
neohitokiritrasher
authored andcommitted
fix: quote $DEST variable to handle paths with spaces
1 parent 51de4cc commit 289432b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugin.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,24 @@ UNAME=$(echo "$NAME" | tr '[:lower:]' '[:upper:]')
4949
VERSION=$2
5050
YEAR=$(date +%Y)
5151

52-
DEST=$DIR/$LNAME
52+
DEST="$DIR/$LNAME"
5353
echo "Creating new $NAME plugin..."
5454

5555
if [ -d "$DEST" ]; then
5656
echo "A directory named $LNAME already exists!"
5757
exit 1
5858
fi
5959

60-
mkdir $DEST
60+
mkdir "$DEST"
6161

6262
rsync \
6363
--exclude '.git' \
6464
--exclude 'plugin.sh' \
6565
--exclude 'dist' \
6666
--exclude 'README.md' \
67-
-a . $DEST
67+
-a . "$DEST"
6868

69-
pushd $DEST > /dev/null
69+
pushd "$DEST" > /dev/null
7070

7171
#rename .tpl...
7272
for f in `ls *.tpl`

0 commit comments

Comments
 (0)