better devmode

This commit is contained in:
pvincent
2026-08-21 09:36:56 +04:00
parent ffc3b1e461
commit 7b4519f2b7
+11 -4
View File
@@ -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