From 6b5f29fcfd69cadf0bf1b22a4d11dd1d38674688 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 11 Oct 2019 17:40:05 +0200 Subject: [PATCH] Change the case statement according to `ls` result --- games/save.game.xdg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/save.game.xdg b/games/save.game.xdg index 86f528a..08cf25a 100755 --- a/games/save.game.xdg +++ b/games/save.game.xdg @@ -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