fix: get arguments correctly
This commit is contained in:
1 parent
c9fc203596
commit
87a786fec5
1 file changed
+1
-1
@@ -188,7 +188,7 @@ EOF
|
|||||||
|
|
||||||
fn-git-clone() {
|
fn-git-clone() {
|
||||||
declare desc="creates an app from remote git repo"
|
declare desc="creates an app from remote git repo"
|
||||||
declare APP="$1" GIT_REMOTE="$2" GIT_REF="$2"
|
declare APP="$1" GIT_REMOTE="$2" GIT_REF="$3"
|
||||||
local APP_CLONE_ROOT="$DOKKU_LIB_ROOT/data/git/$APP"
|
local APP_CLONE_ROOT="$DOKKU_LIB_ROOT/data/git/$APP"
|
||||||
local APP_ROOT="$DOKKU_ROOT/$APP"
|
local APP_ROOT="$DOKKU_ROOT/$APP"
|
||||||
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
|
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
|
||||||
|
|||||||
Reference in new issue
Block a user