This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ ! ( # any of the following are not true | |
# 1st arg is an existing regular file | |
-f "$1" && | |
# ...and it has a .ipa extension | |
"${1##*.}" == "ipa" && | |
# 2nd arg is an existing regular file | |
-f "$2" && | |
# ...and it has an .mobileprovision extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -u | |
# Deletes all disabled branches of a Bamboo build plan | |
# ----------------------------------------------------------------------------- | |
# Syntax: | |
# $0 {planKey} | |
# ----------------------------------------------------------------------------- | |
# Purpose: Bamboo does not automatically delete plan branches when the | |
# corresponding branch in the repository gets deleted. Because Bamboo fails | |
# to pull from it, it disables the branch but keep it around forever. | |
# This script goes through all branches of a build plan and delete the ones |