Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload even if list of branches is empty #2438

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build/travis/job2_AppImage/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ case "$1" in
esac

# Should the AppImage be uploaded?
if [ "$1" == "--upload-branches" ]; then
# User passed in list of branchs so only upload those listed
if [ "$1" == "--upload-branches" ] && [ "$2" != "ALL" ]; then
# User passed in a list of zero or more branches so only upload those listed
shift
for upload_branch in "$@" ; do
[ "$branch" == "$upload_branch" ] && upload=true || true # bypass `set -e`
done
else
# No list passed in so upload on every branch
# No list passed in (or specified "ALL"), so upload on every branch
upload=true
fi

Expand Down