|
|
|
@ -50,15 +50,22 @@ function assert_devmode_available { |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
function fetch_target { |
|
|
|
local name |
|
|
|
name=$(echo "$GIT_URL" | cut -d/ -f2) |
|
|
|
name="${name%.git}" |
|
|
|
target="$PWD/$name" |
|
|
|
} |
|
|
|
|
|
|
|
# Main |
|
|
|
|
|
|
|
source "$MIAOU_BASH_DIR"/lib/functions.bash |
|
|
|
assert_normal_user |
|
|
|
assert_devmode_available |
|
|
|
assert_credentials |
|
|
|
name=$(echo "$GIT_URL" | cut -d/ -f2) |
|
|
|
name="${name%.git}" |
|
|
|
target="$PWD/$name" |
|
|
|
_confirm_destructive "target directory will be: ${target}" |
|
|
|
|
|
|
|
fetch_target |
|
|
|
assert_reachable_target |
|
|
|
_confirm_destructive "target directory will be: ${target}" |
|
|
|
|
|
|
|
dev_mode |