Skip to content

Commit

Permalink
Forgot to change the function to load custom menus to comply with the…
Browse files Browse the repository at this point in the history
… new parsing
  • Loading branch information
Arxari committed Oct 13, 2024
1 parent f00c128 commit 68cdda4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shofi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ load_custom_menus() {

if [[ "$line" =~ ^\[(.*)\]$ ]]; then
menu_name="${BASH_REMATCH[1]}"
custom_menus["$menu_name"]=()
custom_menus["$menu_name"]=""
elif [[ "$line" == *=* ]]; then
IFS='=' read -r app_name app_command <<< "$line"
custom_menus["$menu_name"]+="$app_name:$app_command"$'\n'
custom_menus["$menu_name"]+="${app_name}:${app_command}"$'\n'
fi
done < "$config_file"
}
Expand Down

0 comments on commit 68cdda4

Please sign in to comment.