Skip to content

Commit

Permalink
fzf-*: shell-check suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
suvayu committed Nov 29, 2023
1 parent c3560ee commit 75ccc25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion fzf-file
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# # debug
# set -o xtrace

declare SRCDIR=$(dirname $(readlink -e $0))
declare SRCDIR
SRCDIR=$(dirname $(readlink -e $0))

if [[ $1 =~ -h|--help ]]; then
man -l $SRCDIR/help.1
Expand Down
6 changes: 4 additions & 2 deletions fzf-search
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
# # debug
# set -o xtrace

declare SRCDIR=$(dirname $(readlink -e $0))
declare SRCDIR
SRCDIR=$(dirname $(readlink -e $0))

if [[ $1 =~ -h|--help ]]; then
man -l $SRCDIR/help.1
exit
fi

declare tmpdir=$(mktemp -d)
declare tmpdir
tmpdir=$(mktemp -d)
declare CACHE=$tmpdir/fzf-search-file-cache-${UID}.txt

trap "rm -rf $tmpdir" EXIT INT TERM
Expand Down

0 comments on commit 75ccc25

Please sign in to comment.