From e49199ff4f3dbe2a9b2e7b5aa9fe83d06cb8c726 Mon Sep 17 00:00:00 2001 From: Sinan Gunes Date: Tue, 13 Jul 2021 12:06:05 +0300 Subject: [PATCH] Fixing a path issue --- bitrise.yml | 4 ++-- step.sh | 19 ++++++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/bitrise.yml b/bitrise.yml index d66d6c8..755fb9f 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -6,9 +6,9 @@ app: - SAMPLE_APP_ANDROID: https://github.com/bitrise-io/sample-apps-android-sdk22.git - SAMPLE_APP_IOS: https://github.com/bitrise-io/sample-apps-ios-simple-objc.git - BITRISE_STEP_ID: firebase-app-distribution - - BITRISE_STEP_VERSION: 0.9.0 + - BITRISE_STEP_VERSION: 0.9.1 - BITRISE_STEP_GIT_CLONE_URL: https://github.com/guness/bitrise-step-firebase-app-distribution.git - - MY_STEPLIB_REPO_FORK_GIT_URL: https://github.com/guness/bitrise-steplib.git + - MY_STEPLIB_REPO_FORK_GIT_URL: git@github.com:guness/bitrise-steplib.git - FIREBASE_CI_TOKEN: $FIREBASE_CI_TOKEN - FIREBASE_APP_ID_ANDROID: $FIREBASE_APP_ID_ANDROID - FIREBASE_APP_ID_IOS: $FIREBASE_APP_ID_IOS diff --git a/step.sh b/step.sh index 1e63eb6..b81e1de 100755 --- a/step.sh +++ b/step.sh @@ -106,24 +106,21 @@ if [ -z "${app_path}" ] ; then fi case "${app_path}" in - *\|\|*) - echo_fail "App path contains || . You need to choose one build path: ${app_path}" + \|\|*) + echo_warn "App path starts with || . Manually fixing path: ${app_path}" + app_path="${app_path:2}" + ;; + *\|\|) + echo_warn "App path ends with || . Manually fixing path: ${app_path}" + app_path="${app_path%??}" ;; \|*\|) echo_warn "App path starts and ends with | . Manually fixing path: ${app_path}" app_path="${app_path:1}" app_path="${app_path%?}" ;; - \|*) - echo_warn "App path starts with | . Manually fixing path: ${app_path}" - app_path="${app_path:1}" - ;; - *\|) - echo_warn "App path ends with | . Manually fixing path: ${app_path}" - app_path="${app_path%?}" - ;; *\|*) - echo_fail "App path contains | . You need to choose one build path: ${app_path}" + echo_fail "App path contains | . You need to make sure only one build path is set: ${app_path}" ;; *) echo_info "App path contains a file, great!! 👍"