Build: Rename $uname -> $username in AppImage installation script

"uname" could refer to the `uname` command (short for unix name).
"username" more clearly communicates the variable's purpose.
This commit is contained in:
Mike Salvatore 2022-05-05 09:21:19 -04:00
parent 0287f58d8d
commit ed58ca6950
1 changed files with 6 additions and 6 deletions

View File

@ -99,13 +99,13 @@ exit_if_missing_argument() {
} }
do_uninstall=false do_uninstall=false
uname="" username=""
while (( "$#" )); do while (( "$#" )); do
case "$1" in case "$1" in
--user) --user)
exit_if_missing_argument "$1" "$2" exit_if_missing_argument "$1" "$2"
uname=$2 username=$2
shift 2 shift 2
;; ;;
--install) --install)
@ -142,11 +142,11 @@ if $do_uninstall ; then
exit 0 exit 0
fi fi
assert_parameter_supplied "--user" "$uname" assert_parameter_supplied "--user" "$username"
if ! user_exists "$uname" ; then if ! user_exists "$username" ; then
echo "Error: User '$uname' does not exist" echo "Error: User '$username' does not exist"
exit 1 exit 1
fi fi
install_service "$uname" install_service "$username"