Skip to content

Commit

Permalink
Fixing a path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
guness committed Jul 13, 2021
1 parent ca34c95 commit e49199f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 8 additions & 11 deletions step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!! 👍"
Expand Down

0 comments on commit e49199f

Please sign in to comment.