Removed product printing string
This commit is contained in:
3
vns
3
vns
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Vim Note System, a simple script for managing encrypted plaintext notes
|
# Vim Note System, a simple script for managing encrypted plaintext notes
|
||||||
|
|
||||||
readonly VNS_PRODUCT="Vim Note System, v2.0" # String to print for reports
|
|
||||||
readonly VNS_STORE="${VNS_STORE:-$HOME/.vns}" # Where vns expects its note store
|
readonly VNS_STORE="${VNS_STORE:-$HOME/.vns}" # Where vns expects its note store
|
||||||
GPG_TTY="$(tty)" # Sets up gpg-agent for use
|
GPG_TTY="$(tty)" # Sets up gpg-agent for use
|
||||||
export GPG_TTY
|
export GPG_TTY
|
||||||
@@ -14,7 +13,6 @@ vns_raise (){
|
|||||||
local -r VNS_RED_COLOR='\033[0;31m'
|
local -r VNS_RED_COLOR='\033[0;31m'
|
||||||
local -r VNS_RESET_COLOR='\033[0m'
|
local -r VNS_RESET_COLOR='\033[0m'
|
||||||
|
|
||||||
printf "%s\\n\\n" "$VNS_PRODUCT"
|
|
||||||
printf "$VNS_RED_COLOR!$VNS_RESET_COLOR - %s\\n" "$1" 1>&2
|
printf "$VNS_RED_COLOR!$VNS_RESET_COLOR - %s\\n" "$1" 1>&2
|
||||||
exit "$2"
|
exit "$2"
|
||||||
|
|
||||||
@@ -179,7 +177,6 @@ vns_rm () {
|
|||||||
# rm (note)
|
# rm (note)
|
||||||
# removes (note) from the store
|
# removes (note) from the store
|
||||||
|
|
||||||
printf "%s\\n\\n" "$VNS_PRODUCT"
|
|
||||||
while [ "$#" -gt 0 ]; do
|
while [ "$#" -gt 0 ]; do
|
||||||
# Verify $1 is bound
|
# Verify $1 is bound
|
||||||
if [ "$#" -lt 1 ]; then vns_raise "Insufficient arguments" 30; fi
|
if [ "$#" -lt 1 ]; then vns_raise "Insufficient arguments" 30; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user