Fix not flattening args when doing null comparisons
This commit is contained in:
parent
502d7397cd
commit
8cffa77d38
@ -48,7 +48,7 @@ fi
|
|||||||
# Helper functions
|
# Helper functions
|
||||||
backup() {
|
backup() {
|
||||||
# Takes a file or directory to backup and backs it up
|
# Takes a file or directory to backup and backs it up
|
||||||
[ -z "$@" ] && return 1
|
[ -z "$*" ] && return 1
|
||||||
|
|
||||||
if command -v restic > /dev/null 2>&1; then
|
if command -v restic > /dev/null 2>&1; then
|
||||||
for dir in "$@"; do
|
for dir in "$@"; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user