pashage

Yet Another Opinionated Re-engineering of the Unix Password Store
git clone https://git.instinctive.eu/pashage.git
Log | Files | Refs | README | LICENSE

commit eee8af3a3abd26689fa053efdb82ab035ad437cc
parent 7b2af1f2c1cc0eeaea5f7d4ac7d783fd3936fcc0
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Sun, 20 Oct 2024 09:38:19 +0000

Paths considered sneaky are always checked after argument parsing
Diffstat:
Msrc/pashage.sh | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/pashage.sh b/src/pashage.sh @@ -1072,8 +1072,6 @@ cmd_copy_move() { } cmd_delete() { - check_sneaky_paths "$@" - PARSE_ERROR=no RECURSIVE=no while [ $# -ge 1 ]; do @@ -1109,6 +1107,8 @@ cmd_delete() { fi unset PARSE_ERROR + check_sneaky_paths "$@" + for ARG in "$@"; do do_delete "${ARG}" done @@ -1326,8 +1326,6 @@ cmd_init() { } cmd_insert() { - check_sneaky_paths "$@" - PARSE_ERROR=no while [ $# -ge 1 ]; do case "$1" in @@ -1368,6 +1366,8 @@ cmd_insert() { fi unset PARSE_ERROR + check_sneaky_paths "$@" + for ARG in "$@"; do do_insert "${ARG}" done @@ -1424,6 +1424,7 @@ cmd_list_or_show() { exit 1 fi fi + unset PARSE_ERROR check_sneaky_paths "$@"