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

Fix for using multiple flags with adop compose init #166

Merged
merged 1 commit into from
Feb 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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