Fix incorrect cd path
@@ -24,6 +24,7 @@ target="$(dirname $0)/target"
TMPDIR=$(ls -d -w1 target/addax/addax-*)
[ -n "$TMPDIR" ] || exit 2
+(
cd ${TMPDIR} || exit 3
# should be in target/addax/addax-<version>
[ -d shared ] || mkdir shared
@@ -37,9 +38,9 @@ do
# 2. create symbol link
( cd ${plugin_dir} && ln -sf ../../../../shared/${file_name} $file_name )
done
-
+)
# create archive package
-cd target/addax
+cd ${target}/addax
# should be in target/addax/
# get archive name including version
archive_name=$(basename $TMPDIR)
