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: |
VERSION=`ci/version-number.sh $PLATFORM`
BUILD=`ci/build-number.sh $PLATFORM`
echo "::set-output name=version::$VERSION"
echo "::set-output name=build::$BUILD"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "build=$BUILD" >> $GITHUB_OUTPUT
- name: Create keychain
uses: ./.github/actions/create-keychain
with:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
SRC="$1"
DST="$2"
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"
FILENAME="Localizable.strings"