From 563a127147237059d846803db2c1adf936c80c86 Mon Sep 17 00:00:00 2001 From: cckuan Date: Tue, 12 Jan 2021 21:57:38 +0800 Subject: [PATCH] Update ffn --- .local/bin/ffn | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.local/bin/ffn b/.local/bin/ffn index d15890b8..e4aa3af2 100644 --- a/.local/bin/ffn +++ b/.local/bin/ffn @@ -5,7 +5,7 @@ # * while given '-d' , do not rename file, only print new # file name # Dependency: -# * err.sh +# * nil # Author: # * Chang, Chu-Kuan @@ -17,8 +17,6 @@ # will be deleted readonly sep='[]()._-[:blank:]' -. err.sh - help_msg() { cat << EOF @@ -109,7 +107,8 @@ while getopts 'dh' opt; do exit 0 ;; *) - err '1' 'invalid option\n' + printf '%s: invalid option\n' "${progname}" + exit 1 ;; esac done