# HG changeset patch
# User Juuso Lapinlampi <wubthecaptain@gmail.com>
# Date 1538235373 0
#      Sat Sep 29 15:36:13 2018 +0000
# Node ID f65ee52a148bf9fd2d0ba6c09422c0f7d7310b56
# Parent  1a55359fed00d2c35d6fd2aba1c436663175cbe8
Use POSIX sh scripts for Zandronum testing releases

Use #!/bin/sh (POSIX sh) instead of #!/bin/bash (GNU Bash) for generated
Zandronum testing release launcher scripts. Doing this is more portable
than say, bash, because bash may not exist on all operating systems
(such as OpenBSD) by default. This removes an useless, additional
dependency to rely on.

/bin/sh may be symlinked to another shell in UNIX-like operating
systems. That is fine, too.

Hopefully fixes #3518. 🐡

diff --git a/src/plugins/zandronum/zandronumbinaries.cpp b/src/plugins/zandronum/zandronumbinaries.cpp
--- a/src/plugins/zandronum/zandronumbinaries.cpp
+++ b/src/plugins/zandronum/zandronumbinaries.cpp
@@ -404,7 +404,7 @@
 	QString cdDir = workingDirectory(message);
 
 	// Create Unix script file
-	content  = "#!/bin/bash\n";
+	content  = "#!/bin/sh\n";
 	content += "cd \"" + cdDir + "\" \n";
 	content += "export LANG=C\n";
 	#ifdef Q_OS_MAC
