diff --git a/hosts/common/configs/user/gui/gaming/steam/steam-ln.sh b/hosts/common/configs/user/gui/gaming/steam/steam-ln.sh index 50731dd..d780ea4 100644 --- a/hosts/common/configs/user/gui/gaming/steam/steam-ln.sh +++ b/hosts/common/configs/user/gui/gaming/steam/steam-ln.sh @@ -26,7 +26,7 @@ is_excluded() { } for game in "$STEAM"/*/; do - name=$(basename "$game") + name="$(basename "$game")" if is_excluded "$name"; then echo "Excluding $name from symlink creation." @@ -47,13 +47,13 @@ for game in "$STEAM"/*/; do done for link in "$GAMES"/*; do - target=$(readlink -f "$link") + target="$(readlink -f "$link" || echo "")" if [[ ! "$target" == "$STEAM/"* ]]; then continue fi - name=$(basename "$target") + name="$(basename "$target")" if [[ -e "$target" ]] && ! is_excluded "$name"; then continue