mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix some unexpected behaviour in release.sh on "cd" command
This commit is contained in:
parent
dec63f353f
commit
67c603ef94
@ -24,7 +24,7 @@ if [ $1 = "prepare" ]; then
|
|||||||
# get myaac from git archive
|
# get myaac from git archive
|
||||||
git archive --format zip --output tmp/myaac.zip master
|
git archive --format zip --output tmp/myaac.zip master
|
||||||
|
|
||||||
cd tmp/
|
cd tmp/ || exit
|
||||||
|
|
||||||
dir="myaac-$version"
|
dir="myaac-$version"
|
||||||
if [ -d "$dir" ] ; then
|
if [ -d "$dir" ] ; then
|
||||||
@ -43,7 +43,7 @@ if [ $1 = "pack" ]; then
|
|||||||
# define release version
|
# define release version
|
||||||
version=`cat VERSION`
|
version=`cat VERSION`
|
||||||
|
|
||||||
cd tmp
|
cd tmp || exit
|
||||||
|
|
||||||
# tar.gz
|
# tar.gz
|
||||||
echo "Creating .tar.gz package.."
|
echo "Creating .tar.gz package.."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user