Skip to content

Commit

Permalink
simplify source check
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhurt committed Sep 1, 2024
1 parent 5a9cee7 commit 2dbf23c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zfs-replicate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2dbf23c

Please sign in to comment.