*.sh: POSIX compliance when needed

This commit is contained in:
Moviuro
2015-06-06 16:16:30 +02:00
parent 1651bd817b
commit fbf0cb676f
4 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details
Name="Dedicated Server"
Mod="ra"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Die on any error for Travis CI to automatically retry:
set -e
@@ -10,7 +10,7 @@ cd "${download_dir}"
filename="GeoLite2-Country.mmdb.gz"
# Database does not exist or is older than 30 days.
if [[ ! -e $filename ]] || [[ -n $(find . -name $filename -mtime +30 -print) ]]; then
if [ ! -e $filename ] || [ -n "$(find . -name $filename -mtime +30 -print)" ]; then
rm -f $filename
echo "Updating GeoIP country database from MaxMind."
curl -s -L -O http://geolite.maxmind.com/download/geoip/database/$filename

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Die on any error for Travis CI to automatically retry:
set -e
@@ -8,7 +8,7 @@ download_dir="${0%/*}/download"
mkdir -p "${download_dir}"
cd "${download_dir}"
function get()
get()
{
if which nuget >/dev/null; then
nuget install $1 -Version $2 -ExcludeVersion

2
thirdparty/noget.sh vendored
View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# fallback without dependency resolution if nuget is not present on the system
archive="$1"