check has argument

This commit is contained in:
Andrew Hurley 2022-11-02 11:14:20 +00:00
parent c81246bd90
commit 426cfd9ec6
1 changed files with 1 additions and 0 deletions

1
b2v.sh
View File

@ -5,6 +5,7 @@
PREFIX="" PREFIX=""
if [[ -v 1 ]]; then if [[ -v 1 ]]; then
PREFIX="${1}_" PREFIX="${1}_"
printf "Add prefix $PREFIX\n"
fi fi
cprompt () { cprompt () {