Skip to content

Commit

Permalink
Issue 970: use quotes for variables (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
yitam authored Apr 15, 2019
1 parent 368d088 commit fd24a97
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/packagize.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
if [ "$1" == "" ]; then
cp -rf $PWD/shared $PWD/sqlsrv
cp -rf $PWD/shared $PWD/pdo_sqlsrv
if [[ -z $1 ]]; then
cp -rf "$PWD"/shared "$PWD"/sqlsrv
cp -rf "$PWD"/shared "$PWD"/pdo_sqlsrv
else
[[ -d $1 ]] || { echo "No such path!"; exit 1; }
cp -rf $PWD/sqlsrv $1
cp -rf $PWD/pdo_sqlsrv $1
cp -rf $PWD/shared $1/sqlsrv
cp -rf $PWD/shared $1/pdo_sqlsrv
cp -rf "$PWD"/sqlsrv "$1"
cp -rf "$PWD"/pdo_sqlsrv "$1"
cp -rf "$PWD"/shared "$1"/sqlsrv
cp -rf "$PWD"/shared "$1"/pdo_sqlsrv
fi

0 comments on commit fd24a97

Please sign in to comment.