ENH: script (ssh_filter_btrbk.sh) should fail if any command fails, or var is undefined

pull/30/head
Yaroslav Halchenko 2015-07-08 08:54:56 -04:00
parent 97286ab34c
commit 6f7dae0068
1 changed files with 4 additions and 1 deletions

5
ssh_filter_btrbk.sh Normal file → Executable file
View File

@ -1,8 +1,11 @@
#!/bin/sh
set -e
set -u
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ "$1" = "-l" ]; then
if [ "$#" -gt 1 ] && [ "$1" = "-l" ]; then
enable_log=1
fi