diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/sfsnapshot | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/sfsnapshot b/tools/sfsnapshot index 7b44adc..8e82f29 100755 --- a/tools/sfsnapshot +++ b/tools/sfsnapshot | |||
@@ -81,3 +81,8 @@ EOF | |||
81 | 81 | ||
82 | rm -f $files | 82 | rm -f $files |
83 | 83 | ||
84 | # Work out success or failure | ||
85 | expected=$(($# + 1)) | ||
86 | set -- $files | ||
87 | [[ $# -ne $expected ]] && die "Expected $expected, got $#" | ||
88 | exit 0 | ||