|
|
|
@ -1,7 +1,7 @@ |
|
|
|
#!/usr/bin/env miaou-bash |
|
|
|
|
|
|
|
# Constants |
|
|
|
GIT_URL=https://git.artcode.re/miaou/miaou-bash |
|
|
|
GIT_URL=git@git.artcode.re:miaou/miaou-bash.git |
|
|
|
|
|
|
|
# Functions |
|
|
|
|
|
|
|
@ -12,7 +12,7 @@ function assert_normal_user { |
|
|
|
|
|
|
|
function assert_credentials { |
|
|
|
local base_url |
|
|
|
base_url=$(echo "$GIT_URL" | cut -d/ -f3) |
|
|
|
base_url=$(echo "$GIT_URL" | cut -d: -f0) |
|
|
|
if ! ssh -T "git@${base_url}"; then |
|
|
|
echo "credentials missing: $base_url" |
|
|
|
return 2 |
|
|
|
|