This commit is contained in:
Jordan Bancino 2022-11-13 17:10:25 +00:00
parent a356403cfd
commit 9494016d2d
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ readpwd() {
curlec() {
RETURN="$(curl -w "\n%{http_code}" "$@" 2> /dev/null)"
ERROR_CODE="$(echo "$RETURN" | tail -n1)"
RETURN="$(echo "$RETURN" | head -n"-1")"
RETURN="$(echo "$RETURN" | sed '$d')"
}
# Prompts user to login and gives out an access token to use