šŸ“¦āž”šŸ¦‹ Store and retrieve files on the Atmosphere
35
fork

Configure Feed

Select the types of activity you want to include in your feed.

[#16] auth: fix/ignore shellcheck warnings

Ducky 18b22343 f94979c0

+5 -3
+5 -3
src/commands/auth.sh
··· 5 5 override_password="$2" 6 6 7 7 function atfile.auth.get_command_segment() { 8 + # shellcheck disable=SC2154 8 9 IFS=' ' read -r -a command_array <<< "$_command_full" 9 10 index=$1 10 11 ··· 58 59 error="$(atfile.util.get_xrpc_error $? "$resolved_did")" 59 60 [[ -n "$error" ]] && atfile.die.xrpc_error "Unable to resolve '$_username'" "$resolved_did" 60 61 61 - _username="$(echo $resolved_did | cut -d "|" -f 1)" 62 - _server="$(echo $resolved_did | cut -d "|" -f 2)" 62 + _username="$(echo "$resolved_did" | cut -d "|" -f 1)" 63 + _server="$(echo "$resolved_did" | cut -d "|" -f 2)" 63 64 64 65 atfile.say.debug "Resolved identity\n↳ DID: $_username\n↳ PDS: $_server" 65 66 fi ··· 69 70 fi 70 71 71 72 if [[ -n $_server ]]; then 73 + # shellcheck disable=SC2154 72 74 if [[ $_skip_auth_check == 0 ]]; then 73 75 atfile.say.debug "Checking authentication is valid..." 74 76 ··· 78 80 if [[ -n "$error" ]]; then 79 81 atfile.die.xrpc_error "Unable to authenticate" "$error" 80 82 else 81 - _username="$(echo $session | jq -r ".did")" 83 + _username="$(echo "$session" | jq -r ".did")" 82 84 fi 83 85 else 84 86 atfile.say.debug "Skipping checking authentication validity\n↳ ${_envvar_prefix}_SKIP_AUTH_CHECK is set ($_skip_auth_check)"