Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Commit b2bd277

Browse files
committed
Fixed option git_branch.
1 parent fc684cf commit b2bd277

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docker-build.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,20 @@ echo "### End: $project_dir/install/settings" >> $options
3939
for opt in "$@"
4040
do
4141
case $opt in
42-
--git_branch=*) git_branch=${opt#*=} ;;
4342
-h|--help) usage ;;
43+
44+
--git_branch=*)
45+
git_branch=${opt#*=}
46+
echo git_branch="$git_branch" >> $options
47+
;;
48+
4449
--*=*)
4550
optvalue=${opt#*=}
4651
optname=${opt%%=*}
4752
optname=${optname:2}
4853
echo $optname="$optvalue" >> $options
4954
;;
55+
5056
*)
5157
if [ ${opt:0:1} = '-' ]; then usage; fi
5258

@@ -56,9 +62,10 @@ do
5662
echo "File '$settings' does not exist."
5763
exit 1
5864
fi
59-
echo "### Start: $settings" >> $options
65+
echo "### ----- Start: $settings" >> $options
6066
cat $settings >> $options
61-
echo "### End: $settings" >> $options
67+
echo "### ----- End: $settings" >> $options
68+
echo
6269
;;
6370
esac
6471
done

0 commit comments

Comments
 (0)