Fix syntax error

This commit is contained in:
Thomas Avé 2025-01-28 01:41:54 +01:00
parent 3482265bd6
commit 1d4fa86fa4
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ local function get_entries() {
for entry in "$XDG_CONFIG_HOME/fzgo/entries/$file_type"/*; do
if [ -L "$entry" ]; then
entry=$(realpath "$entry")
end
fi
if [ -d "$entry" ]; then
fd . "$entry" -t "$file_type"
else
@ -43,7 +43,7 @@ function fzgo_update_cache() {
mkdir -p "$XDG_CACHE_HOME/fzgo/entries/$file_type"
if [ -L "$entry" ]; then
entry=$(realpath "$entry")
end
fi
if [ -d "$entry" ]; then
out_file="$(echo "$entry" | sed 's\/\|\g')"
out_file="$XDG_CACHE_HOME/fzgo/entries/$file_type/$out_file"