Change the case statement according to `ls` result
This commit is contained in:
parent
24b61b09d0
commit
6b5f29fcfd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue