Commits

md_5 authored e2243e9cfc8
BUILDTOOLS-301: Make shell scripts POSIX correct
No tags

applyPatches.sh

Modified
1 -#!/bin/bash
1 +#!/bin/sh
2 2
3 3 PS1="$"
4 4 basedir=`pwd`
5 5 echo "Rebuilding Forked projects.... "
6 6
7 -function applyPatch {
7 +applyPatch() {
8 8 what=$1
9 9 target=$2
10 10 branch=$3
11 11 cd "$basedir/$what"
12 12 git fetch
13 13 git reset --hard "$branch"
14 14 git branch -f upstream >/dev/null
15 15
16 16 cd "$basedir"
17 17 if [ ! -d "$basedir/$target" ]; then

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut