From ce8a464a5e0dd603ef122ecfbf06084d1760d815 Mon Sep 17 00:00:00 2001 From: Minty Cube <90507714+mintycube@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:44:35 +0500 Subject: [PATCH] Fixed -v added exception for -v in functions --- ff | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ff b/ff index 35585c3..3decfca 100755 --- a/ff +++ b/ff @@ -40,6 +40,9 @@ listObjects() { unique_names=() for arg in "$@"; do + if [[ "$arg" == "-v" ]]; then + continue + fi name="${arg%%/*}" if [ -n "$name" ]; then if [[ ! " ${unique_names[*]} " =~ $name ]]; then @@ -60,6 +63,9 @@ listObjects() { # Function to create directory structures and files createObjects() { for path in "$@"; do + if [[ "$path" == "-v" ]]; then + continue + fi if [[ "$path" == */ ]]; then mkdir -p "$path" fi