mirror of https://github.com/digint/btrbk
ssh_filter_btrbk: fail if any command fails, or var is undefined
parent
97286ab34c
commit
f8c64c4f27
|
@ -1,8 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
if [ "$1" = "-l" ]; then
|
||||
enable_log=
|
||||
if [ "$#" -ge 1 ] && [ "$1" = "-l" ]; then
|
||||
enable_log=1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue