aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-11 14:13:22 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-11 14:13:22 +1300
commit8f2cd6ae50a74b0dad23d3a53b017fbb7a67f3d9 (patch)
treeb28ed343f5c080cccd9ba8c20edd2b84f4676c9c
parentAdd keep (diff)
downloaddotfiles-8f2cd6ae50a74b0dad23d3a53b017fbb7a67f3d9.tar.gz
dotfiles-8f2cd6ae50a74b0dad23d3a53b017fbb7a67f3d9.zip
Restore previous fnl syntax for shellcheck
-rw-r--r--bash/bashrc.d/fnl.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/bash/bashrc.d/fnl.bash b/bash/bashrc.d/fnl.bash
index fd8dfc97..50bf7a31 100644
--- a/bash/bashrc.d/fnl.bash
+++ b/bash/bashrc.d/fnl.bash
@@ -23,8 +23,9 @@ fnl() {
fi
# Create a temporary directory or bail
- local dirname
- if ! dirname=$(mktemp -dt -- "$FUNCNAME"."$1".XXXXXX) ; then
+ local dirname template
+ template=$FUNCNAME.$1.XXXXXX
+ if ! dirname=$(mktemp -dt -- "$template") ; then
return
fi