From 8f2cd6ae50a74b0dad23d3a53b017fbb7a67f3d9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 11 Dec 2015 14:13:22 +1300 Subject: Restore previous fnl syntax for shellcheck --- bash/bashrc.d/fnl.bash | 5 +++-- 1 file 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 -- cgit v1.2.3