mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-12 02:15:17 +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
|
||||
cd "$(dirname $0)"/..
|
||||
|
||||
DEFAULT=$1
|
||||
ROLLUP=$2
|
||||
WEBPACK=$3
|
||||
DEFAULT=${1:-master}
|
||||
ROLLUP=${2:-rollup}
|
||||
WEBPACK=${3:-webpack}
|
||||
|
||||
echo "Creating $ROLLUP and $WEBPACK branches from $DEFAULT"
|
||||
|
||||
# make sure we're on master, and delete the $ROLLUP and $WEBPACK branches
|
||||
git symbolic-ref HEAD "refs/heads/$DEFAULT"
|
||||
|
||||
Reference in New Issue
Block a user