mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 17:52:26 +00:00
[macos] Fix update dock command
This commit is contained in:
@@ -6,7 +6,7 @@ function update-dock() {
|
|||||||
app_path=$(echo "$entry" | cut -d $'\t' -f 2)
|
app_path=$(echo "$entry" | cut -d $'\t' -f 2)
|
||||||
app_type=$(echo "$entry" | cut -d $'\t' -f 3)
|
app_type=$(echo "$entry" | cut -d $'\t' -f 3)
|
||||||
idx=$((idx+1))
|
idx=$((idx+1))
|
||||||
dockutil --no-restart -a "$(urldecode "$app_path")" > /dev/null 2>&1
|
dockutil --no-restart -a "$app_path" > /dev/null 2>&1
|
||||||
if [ "$app_type" = "persisentApps" ]; then
|
if [ "$app_type" = "persisentApps" ]; then
|
||||||
dockutil --move "$app_name" -p $idx
|
dockutil --move "$app_name" -p $idx
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user