Change shebang to env

Move parameters from shebang back into set.
Add set -e to setenv and vstool for consistency.
This commit is contained in:
Margen67 2022-03-09 21:15:32 -08:00
parent 67a70b4235
commit 2e8c16e028
17 changed files with 51 additions and 17 deletions

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
# Ensure we are in root directory
if [[ $(uname) == "Darwin" ]]; then

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
echo -e "\033[0;36mBuilding AppImage for OpenRCT2...\033[0m"

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
if [[ "$#" -gt 2 || "$1" == "-h" ]]; then
echo 'Create a Windows installer for OpenRCT2'

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then
# Create a Windows symbols archive for OpenRCT2

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
# Check 7z or zip is available
if [ -x "$(command -v 7z)" ]; then

View File

@ -1,4 +1,6 @@
#!/bin/sh -e
#!/usr/bin/env sh
set -e
readlink_bin='readlink'

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
echo "Creating macOS universal app bundle"
# create app skeleton

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
if [[ $(uname) == "Linux" ]]; then
basedir="$(readlink -f `dirname $0`/..)"

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
if [[ "$#" -ne 0 && "$#" -ne 2 ]]; then
echo 'Install a portable version of NSIS which can build the OpenRCT2 Windows installer.'

View File

@ -1,4 +1,6 @@
#!/bin/bash -ex
#!/usr/bin/env bash
set -ex
REPO_ROOT=$(readlink -f $(dirname "$0")/../..)

View File

@ -1,4 +1,6 @@
#!/bin/bash -ex
#!/usr/bin/env bash
set -ex
# use RAM disk if possible
if [ -z "$CI" ] && [ -d /dev/shm ]; then

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
# Ensure we are in root directory
basedir="$(readlink -f `dirname $0`/..)"

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
# Ensure we are in root directory
if [[ $(uname) == "Darwin" ]]; then

View File

@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
# This sets up more environment variables using the existing environment
# It should be dot sourced into your environment

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
if [[ "$#" -ne 1 ]]; then
echo 'Upload OpenRCT2 debug symbols to https://backtrace.io.'

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
if [[ "$#" -ne 4 && "$#" -ne 5 ]]; then
echo 'Upload an OpenRCT2 build to openrct2.org.'

View File

@ -1,3 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
vstool.cmd $@