You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[root@bogon docker]# ./up.sh --dev
~/software/jepsen/jepsen-master/docker ~/software/jepsen/jepsen-master/docker
[INFO] JEPSEN_ROOT is not set, defaulting to: /root/software/jepsen/jepsen-master
[INFO] Running docker-compose with dev config
./up.sh: line 79: POSITIONAL[@]: unbound variable
The text was updated successfully, but these errors were encountered:
I modified up.sh script. It works well on macOS 10.15.4 with docker desktop 2.3.0.3.
diff --git a/docker/up.sh b/docker/up.sh
index 0f84f027..3d79dada 100755
--- a/docker/up.sh+++ b/docker/up.sh@@ -76,7 +76,7 @@ do
;;
esac
done
-set -- "${POSITIONAL[@]}" # restore positional parameters+set -- "${POSITIONAL[@]+"${POSITIONAL[@]}"}" # restore positional parameters
if [ "${HELP}" -eq 1 ]; then
echo "Usage: $0 [OPTION]"
@@ -116,7 +116,7 @@ fi
rm -rf ./control/jepsen
mkdir -p ./control/jepsen/jepsen
# Copy the jepsen directory if we're not mounting the JEPSEN_ROOT
-if [ -n "${DEV}" ]; then+if [ -z "${DEV}" ]; then
# Dockerfile does not allow `ADD ..`. So we need to copy it here in setup.
INFO "Copying .. to control/jepsen"
(
[root@bogon docker]# ./up.sh --dev
~/software/jepsen/jepsen-master/docker ~/software/jepsen/jepsen-master/docker
[INFO] JEPSEN_ROOT is not set, defaulting to: /root/software/jepsen/jepsen-master
[INFO] Running docker-compose with dev config
./up.sh: line 79: POSITIONAL[@]: unbound variable
The text was updated successfully, but these errors were encountered: