Change the case statement according to `ls` result

This commit is contained in:
Jeremy Gardais 2019-10-11 17:40:05 +02:00
parent 24b61b09d0
commit 6b5f29fcfd
1 changed files with 2 additions and 2 deletions

View File

@ -142,12 +142,12 @@ for game_name in ${xdg_config_games}; do
case ${local_game_path_type} in
## Data is already a symlink
"symbolic")
"symbolic"|"l")
link_name="$(file "${local_game_path}" | sed 's;.* symbolic link to \(.*\);\1;')"
[ "${debug}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: XDG CONFIG for loop — The data of ${game_name} are already symlinked to ${link_name} . Skip."
;;
## Data is still a directory
"directory")
"directory"|"d")
move_game_dir "${game_name}" "${xdg_config}"
;;
## Data doesn't exist