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

Commit

Permalink
Merge pull request #166 from statlus/feature/composefix
Browse files Browse the repository at this point in the history
Fix for using multiple flags with adop compose init
  • Loading branch information
nickdgriffin authored Feb 15, 2017
2 parents 278e7e0 + 76a3b02 commit acd56db
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 acd56db

Please sign in to comment.