Skip to content

Instantly share code, notes, and snippets.

@keisisqrl
Created September 26, 2023 22:16
Show Gist options
  • Save keisisqrl/e7f54716a401cb15c4b225203b11a6c2 to your computer and use it in GitHub Desktop.
Save keisisqrl/e7f54716a401cb15c4b225203b11a6c2 to your computer and use it in GitHub Desktop.
openslides diff to make build.sh work on MacOS
diff --git a/dev/docker/build.sh b/dev/docker/build.sh
index ee237616c..71d0094b0 100755
--- a/dev/docker/build.sh
+++ b/dev/docker/build.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/opt/homebrew/opt/bash/bin/bash
set -e
@@ -54,7 +54,7 @@ fi
shortopt="hr:D:t:"
longopt="help,docker-repo:,tag:,no-cache,ask-push,yes,images"
-ARGS=$(getopt -o "$shortopt" -l "$longopt" -n "$ME" -- "$@")
+ARGS=$(/opt/homebrew/opt/gnu-getopt/bin/getopt -o "$shortopt" -l "$longopt" -n "$ME" -- "$@")
if [ $? -ne 0 ]; then usage; exit 1; fi
eval set -- "$ARGS";
unset ARGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment