aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-21 17:10:45 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-21 17:10:45 +1300
commit8032ac8c1b7e0dd15fe0954fab3d59dd4c1f0244 (patch)
tree0c69febad80e646999a62ed5945e0e5a6633d5fd /bash/bashrc.d
parent17afda4f227fbb8c07269ef8c96cc7931cf6f02f (diff)
downloaddotfiles-8032ac8c1b7e0dd15fe0954fab3d59dd4c1f0244.tar.gz
dotfiles-8032ac8c1b7e0dd15fe0954fab3d59dd4c1f0244.zip
Fix printf argument mismatch bugs
What did we do before ShellCheck?
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/keep.bash2
-rw-r--r--bash/bashrc.d/vared.bash2
2 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/keep.bash b/bash/bashrc.d/keep.bash
index a8c3456a..85455824 100644
--- a/bash/bashrc.d/keep.bash
+++ b/bash/bashrc.d/keep.bash
@@ -124,7 +124,7 @@ EOF
# Deleting is an error, since we need at least one argument
if ((delete)) ; then
- printf 'bash: %s: must specify at least one NAME to delete\n'
+ printf 'bash: %s: must specify at least one NAME to delete\n' \
"${FUNCNAME[0]}" >&2
return 2
fi
diff --git a/bash/bashrc.d/vared.bash b/bash/bashrc.d/vared.bash
index 14958ffb..9159485b 100644
--- a/bash/bashrc.d/vared.bash
+++ b/bash/bashrc.d/vared.bash
@@ -11,7 +11,7 @@ vared() {
prompt=$OPTARG
;;
\?)
- printf 'bash: %s: -%s: invalid option\n'
+ printf 'bash: %s: -%s: invalid option\n' \
"${FUNCNAME[0]}" "$opt" >&2
return 2
;;