mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-16 20:14:35 +00:00
add default branches so it doesnt go haywire and self-destruct (oops)
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname $0)"/..
|
cd "$(dirname $0)"/..
|
||||||
|
|
||||||
DEFAULT=$1
|
DEFAULT=${1:-master}
|
||||||
ROLLUP=$2
|
ROLLUP=${2:-rollup}
|
||||||
WEBPACK=$3
|
WEBPACK=${3:-webpack}
|
||||||
|
|
||||||
|
echo "Creating $ROLLUP and $WEBPACK branches from $DEFAULT"
|
||||||
|
|
||||||
# make sure we're on master, and delete the $ROLLUP and $WEBPACK branches
|
# make sure we're on master, and delete the $ROLLUP and $WEBPACK branches
|
||||||
git symbolic-ref HEAD "refs/heads/$DEFAULT"
|
git symbolic-ref HEAD "refs/heads/$DEFAULT"
|
||||||
|
|||||||
Reference in New Issue
Block a user