mirror of
https://github.com/aclist/dztui.git
synced 2026-08-29 19:27:13 +02:00
chore: update return codes
This commit is contained in:
parent
5dfa51dc15
commit
2bb575cd97
@ -1128,14 +1128,14 @@ update_config_val(){
|
|||||||
key="steam_api"
|
key="steam_api"
|
||||||
if [[ ${#value} -lt 32 ]] || [[ $(test_steam_api "$value") -eq 1 ]]; then
|
if [[ ${#value} -lt 32 ]] || [[ $(test_steam_api "$value") -eq 1 ]]; then
|
||||||
printf "Invalid API key"
|
printf "Invalid API key"
|
||||||
return 2
|
return 78
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"Change Battlemetrics API key")
|
"Change Battlemetrics API key")
|
||||||
key="api_key"
|
key="api_key"
|
||||||
if [[ $(test_bm_api "$value") -eq 1 ]]; then
|
if [[ $(test_bm_api "$value") -eq 1 ]]; then
|
||||||
printf "Invalid API key"
|
printf "Invalid API key"
|
||||||
return 2
|
return 79
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -1143,7 +1143,7 @@ update_config_val(){
|
|||||||
nr="$value"
|
nr="$value"
|
||||||
update_config
|
update_config
|
||||||
echo "Updated the key '$key' to '$value'"
|
echo "Updated the key '$key' to '$value'"
|
||||||
return 90
|
return 80
|
||||||
}
|
}
|
||||||
show_log(){
|
show_log(){
|
||||||
< "$debug_log" sed 's/Keyword␞/Keyword/'
|
< "$debug_log" sed 's/Keyword␞/Keyword/'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user