Fix unquoted variables in all shell scripts to prevent word splitting
Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com>
This commit is contained in:
@@ -173,9 +173,9 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
path="${dock_order[$i]}"
|
||||
name=$(basename "$path" | sed 's/\.app$//')
|
||||
if [[ $dock_state == *"$name"* ]]; then
|
||||
dockutil --move "${path}" --position $i --no-restart
|
||||
dockutil --move "${path}" --position "$i" --no-restart
|
||||
else
|
||||
dockutil --add "${path}" --position $i --no-restart
|
||||
dockutil --add "${path}" --position "$i" --no-restart
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user