From 2dbf23cd0cd8f148c892aac1d5021380b72f6ed5 Mon Sep 17 00:00:00 2001 From: Aaron Hurt Date: Sun, 1 Sep 2024 10:13:10 -0500 Subject: [PATCH] simplify source check --- zfs-replicate.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zfs-replicate.sh b/zfs-replicate.sh index d4741ba..13db695 100755 --- a/zfs-replicate.sh +++ b/zfs-replicate.sh @@ -554,7 +554,6 @@ main() { } ## process config and start main if we weren't sourced -if [ "$SCRIPT" != "sh" ] && [ "$SCRIPT" != "dash" ] && [ "$SCRIPT" != "-bash" ] && - [ "$(expr "$SCRIPT" : 'zfs-replicate')" -gt 0 ]; then +if [ "$(expr "$SCRIPT" : 'zfs-replicate')" -gt 0 ]; then loadConfig "$@" && main 2>&1 | captureOutput fi