这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 10 additions & 3 deletions dokku
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ source "$PLUGIN_PATH/common/functions"
[[ $DOKKU_TRACE ]] && set -x

parse_args "$@"
for arg in "$@"; do
[[ "$arg" =~ ^--.* ]] && shift 1
done
args=("$@")
if [[ "${args[0]}" =~ ^--.* ]]; then
for arg in "$@"; do
if [[ "$arg" =~ ^--.* ]];then
shift 1
else
break
fi
done
fi
! has_tty && DOKKU_QUIET_OUTPUT=1

if [[ $(id -un) != "dokku" && $1 != plugins-install* && $1 != "plugins-update" ]]; then
Expand Down
8 changes: 8 additions & 0 deletions tests/unit/00_dokku-standard.bats
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ teardown() {
assert_success
}

@test "run (with --options)" {
deploy_app
run /bin/bash -c "dokku --force --quiet run $TEST_APP node --version"
echo "output: "$output
echo "status: "$status
assert_success
}

@test "urls (non-ssl)" {
run bash -c "dokku urls $TEST_APP | grep dokku.me"
echo "output: "$output
Expand Down