mirror of
https://github.com/RGBCube/GitHub2Forgejo.git
synced 2025-09-08 22:00:17 +00:00
Use shorthand for --ignore-erros as it is too long
This commit is contained in:
parent
084ff3bcc0
commit
7a61df4396
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ def main [
|
||||||
let gitea_uid = (
|
let gitea_uid = (
|
||||||
http get $"($gitea_url)/api/v1/users/($gitea_user)"
|
http get $"($gitea_url)/api/v1/users/($gitea_user)"
|
||||||
-H [ Authorization $"token ($gitea_token)" ]
|
-H [ Authorization $"token ($gitea_token)" ]
|
||||||
) | get --ignore-errors id
|
) | get -i id
|
||||||
|
|
||||||
if $gitea_uid == null {
|
if $gitea_uid == null {
|
||||||
echo "Invalid Gitea username or password"
|
echo "Invalid Gitea username or password"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue