mirror of
https://github.com/mintycube/fast-files.git
synced 2024-10-22 14:05:52 +02:00
Fixed -v
added exception for -v in functions
This commit is contained in:
parent
798ffbd7ac
commit
ce8a464a5e
6
ff
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user