Fix some issues in scripts

- Always use bash for consistent script behavior

- Replace deprecated set-output in GitHub workflows
This commit is contained in:
Davide De Rosa 2022-10-17 08:35:36 +02:00
parent c7a0a3e4b8
commit 9962401d74
15 changed files with 16 additions and 16 deletions

View File

@ -55,8 +55,8 @@ jobs:
run: | run: |
VERSION=`ci/version-number.sh $PLATFORM` VERSION=`ci/version-number.sh $PLATFORM`
BUILD=`ci/build-number.sh $PLATFORM` BUILD=`ci/build-number.sh $PLATFORM`
echo "::set-output name=version::$VERSION" echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "::set-output name=build::$BUILD" echo "build=$BUILD" >> $GITHUB_OUTPUT
- name: Create keychain - name: Create keychain
uses: ./.github/actions/create-keychain uses: ./.github/actions/create-keychain
with: with:

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
VERSION=$1 VERSION=$1
if [[ -z $VERSION ]]; then if [[ -z $VERSION ]]; then

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
HOSTNAME=`echo $MATCH_GIT_URL | sed -E "s/^.*@(.*):.*$/\1/"` HOSTNAME=`echo $MATCH_GIT_URL | sed -E "s/^.*@(.*):.*$/\1/"`
grep -q $HOSTNAME ~/.ssh/known_hosts grep -q $HOSTNAME ~/.ssh/known_hosts
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
VERSION=$1 VERSION=$1
if [[ -z $VERSION ]]; then if [[ -z $VERSION ]]; then
echo "Must provide version" echo "Must provide version"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
CURRENT_BRANCH=`git branch --show-current` CURRENT_BRANCH=`git branch --show-current`
if [[ $CURRENT_BRANCH != "master" ]]; then if [[ $CURRENT_BRANCH != "master" ]]; then
echo "Not on master branch" echo "Not on master branch"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
PLATFORM=$1 PLATFORM=$1
if [[ -z $PLATFORM ]]; then if [[ -z $PLATFORM ]]; then
echo "Platform required" echo "Platform required"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
PLATFORM=$1 PLATFORM=$1
if [[ -z $PLATFORM ]]; then if [[ -z $PLATFORM ]]; then
echo "Platform required" echo "Platform required"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
PLATFORM=$1 PLATFORM=$1
if [[ -z $PLATFORM ]]; then if [[ -z $PLATFORM ]]; then
echo "Platform required" echo "Platform required"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
PLATFORM=$1 PLATFORM=$1
if [[ -z $PLATFORM ]]; then if [[ -z $PLATFORM ]]; then
echo "Platform required" echo "Platform required"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
PATTERN="Passepartout/App/fastlane/ios/metadata/*/description.txt" PATTERN="Passepartout/App/fastlane/ios/metadata/*/description.txt"
AFTER=$1 AFTER=$1
NAME=$2 NAME=$2

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
SIZES="120 152 167 180 76" SIZES="120 152 167 180 76"
cd Passepartout/App/Assets.xcassets/AppIcon.appiconset cd Passepartout/App/Assets.xcassets/AppIcon.appiconset

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
APP_ROOT="Passepartout/App" APP_ROOT="Passepartout/App"
APP_SHARED_ROOT="Passepartout/AppShared" APP_SHARED_ROOT="Passepartout/AppShared"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
FILE="$1" FILE="$1"
SRC="$2/$FILE" SRC="$2/$FILE"
DST="$3" DST="$3"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
SRC="$1" SRC="$1"
DST="$2" DST="$2"
for LANG in "de" "el" "en" "es" "fr" "it" "nl" "pl" "pt" "ru" "sv" "zh-Hans"; do for LANG in "de" "el" "en" "es" "fr" "it" "nl" "pl" "pt" "ru" "sv" "zh-Hans"; do

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
DIR="Passepartout/AppShared" DIR="Passepartout/AppShared"
FILENAME="Localizable.strings" FILENAME="Localizable.strings"