Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Fix for using multiple flags with adop compose init
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Luo committed Feb 15, 2017
1 parent 278e7e0 commit 76a3b02
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions cmd/compose
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,27 @@ prep_env() {

init() {

case "$1" in
--without-pull)
export PULL="NO"
;;
--without-load)
export LOAD="NO"
;;
--with-stdout)
export LOGS="NO"
;;
*)
esac
while [[ $1 ]]; do
case "$1" in
--without-pull)
export PULL="NO"
shift
;;
--without-load)
export LOAD="NO"
shift
;;
--with-stdout)
export LOGS="NO"
shift
;;
*)
echo "Unrecognized option: $1"
help
exit 1
;;
esac
done

echo '
### ######## ####### ########
Expand Down

0 comments on commit 76a3b02

Please sign in to comment.