-E|--env|--environment)
j=$(( $i + 1 ))
PUPPET_ENV="${REMAINING_OPTS[$j]}"
- debug "Puppet environment is now: '${CYAN}${PUPPET_ENV}${NORMAL}'."
+ debug "Puppet environment is now: '${CYAN}${PUPPET_ENV}${NORMAL}', i = $i."
i=$(( $i + 2 ))
;;
-D|--dir)
j=$(( $i + 1 ))
ENV_DIR="${REMAINING_OPTS[$j]}"
- debug "Puppet environment directory is now: '${CYAN}${ENV_DIR}${NORMAL}'."
+ debug "Puppet environment directory is now: '${CYAN}${ENV_DIR}${NORMAL}', i = $i."
i=$(( $i + 2 ))
;;
*) echo -e "Internal error - option '${RED}${arg}${NORMAL}' was wrong!"