Skip to content

Instantly share code, notes, and snippets.

@tsibley
Created September 16, 2022 22:54
Show Gist options
  • Select an option

  • Save tsibley/ec570a7aba2d1d8bd605b6351047abbc to your computer and use it in GitHub Desktop.

Select an option

Save tsibley/ec570a7aba2d1d8bd605b6351047abbc to your computer and use it in GitHub Desktop.
diff --git a/bin/standalone-installer-unix b/bin/standalone-installer-unix
index e11445a..bfdfd3d 100755
--- a/bin/standalone-installer-unix
+++ b/bin/standalone-installer-unix
@@ -234,4 +234,6 @@ die() {
exit 1
}
-main "$@"
+if [[ -z "$BASH_SOURCE" || "$BASH_SOURCE" == "$0" ]]; then
+ main "$@"
+fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment