Skip to content

Commit

Permalink
Issue 970: use quotes for variables
Browse files Browse the repository at this point in the history
  • Loading branch information
yitam committed Apr 10, 2019
1 parent 1e4f014 commit d8ab33e
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 d8ab33e

Please sign in to comment.