Skip to content

Commit 2dbf23c

Browse files
committed
simplify source check
1 parent 5a9cee7 commit 2dbf23c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zfs-replicate.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,6 @@ main() {
554554
}
555555

556556
## process config and start main if we weren't sourced
557-
if [ "$SCRIPT" != "sh" ] && [ "$SCRIPT" != "dash" ] && [ "$SCRIPT" != "-bash" ] &&
558-
[ "$(expr "$SCRIPT" : 'zfs-replicate')" -gt 0 ]; then
557+
if [ "$(expr "$SCRIPT" : 'zfs-replicate')" -gt 0 ]; then
559558
loadConfig "$@" && main 2>&1 | captureOutput
560559
fi

0 commit comments

Comments
 (0)