Skip to content

Commit

Permalink
multi-switcher: drop support for alternative 5.4 branch names
Browse files Browse the repository at this point in the history
This was transitional and is not longer needed.

Signed-off-by: Matthias Maennich <[email protected]>
Change-Id: I654571f3c4c2731b4f130f39f27a9ecc5a8ee3c3
  • Loading branch information
metti committed Dec 2, 2020
1 parent cd17eb7 commit 354de34
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions multi-switcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,12 @@ pushd $BASE > /dev/null

echo "Switching to $BRANCH"

if [[ ${BRANCH} == "11-5.4" ]]; then
alt_name="5.4-stable"
fi

if [[ ${BRANCH} == "12-5.4" ]]; then
alt_name="5.4"
fi

for dir in common common-modules/virtual-device; do
if [ -L ${dir} ]; then
rm ${dir}
fi

for candidate in ${dir}-${BRANCH} ${dir}-${alt_name} ${dir}${BRANCH}; do
for candidate in ${dir}-${BRANCH} ${dir}${BRANCH}; do
if [ -d ${candidate} ]; then
(
cd $(dirname $candidate)
Expand Down

0 comments on commit 354de34

Please sign in to comment.