X: publishGitHub.sh should support a default branch
This commit is contained in:
+5
-3
@@ -1,12 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [ "$#" -ne 1 ]; then
|
DEFAULT_BRANCH=0.1-dev
|
||||||
echo "Usage: $0 <github-snapshot-branch>" >&2
|
|
||||||
|
if [ "$#" -gt 1 ]; then
|
||||||
|
echo "Usage: $0 [github-snapshot-branch]" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BRANCH="$1"
|
BRANCH="${1:-$DEFAULT_BRANCH}"
|
||||||
|
|
||||||
SOURCE="$HOME/projects/com_r35157_nenjim-hubd-impl_ref"
|
SOURCE="$HOME/projects/com_r35157_nenjim-hubd-impl_ref"
|
||||||
TARGET="$HOME/projects/com_r35157_nenjim-hubd-impl_ref_github_snapshot"
|
TARGET="$HOME/projects/com_r35157_nenjim-hubd-impl_ref_github_snapshot"
|
||||||
|
|||||||
Reference in New Issue
Block a user