Codacy compliant

This commit is contained in:
Samuel Huang
2024-09-30 23:05:53 +10:00
parent 8d2a35c53e
commit 3ae14cfa24
17 changed files with 78 additions and 48 deletions

View File

@@ -7,10 +7,10 @@ usage() {
>&2 echo -e "User format: user|u=<uid>[:level:email]"
}
options=($(echo $1 |tr ',' ' '))
IFS=',' read -a options <<< "$1"
for option in "${options[@]}"
do
kv=($(echo $option |tr '=' ' '))
IFS='=' read -a kv <<< "$option"
case "${kv[0]}" in
d|dest)
dest="${kv[1]}"
@@ -50,6 +50,7 @@ do
;;
esac
done
unset IFS
if [ -z "${dest}" ]; then
>&2 echo -e "Error: Fake Destination undefined.\n"