Browse Source

Correct syntax errors in pkg.sh script

Various problem with brackets, creating syntax error for the first and
producing the archive with a wrong name.
Leo 9 years ago
parent
commit
6fe29b99a6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg.sh

+ 2 - 2
pkg.sh

@@ -4,7 +4,7 @@
 echo "Start"
 echo "Start"
 
 
 # If directory doesn't exist, create it
 # If directory doesn't exist, create it
-if ! [[ -e dist ]]; then
+if ! [ -e dist ]; then
     mkdir dist
     mkdir dist
 fi
 fi
 
 
@@ -14,5 +14,5 @@ id=`git rev-parse --short --verify HEAD`
 name=OcLaunch_${tag}-${id}.tgz
 name=OcLaunch_${tag}-${id}.tgz
 
 
 echo "Write in" $name
 echo "Write in" $name
-git archive master --prefix=${name}/ --format=tgz -o dist/$name
+git archive master --prefix=${name}/ --format=tgz -o dist/${name}