set -euo pipefail
This commit is contained in:
parent
dcb657f732
commit
8787c3becd
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
ds_handle=0
|
||||
ds_buf=""
|
||||
declare -A ds_handles
|
||||
|
@ -65,7 +67,7 @@ ds_assert() {
|
|||
local h="$ds_handle"
|
||||
ds_handle=$(($ds_handle + 1))
|
||||
ds_action "$1" "<assert $2 $h>"
|
||||
if [ -n "$3" ]
|
||||
if [ -n "${3:-}" ]
|
||||
then
|
||||
ds_handle_oids[$3]="$1"
|
||||
ds_handles[$3]="$h"
|
||||
|
|
Loading…
Reference in New Issue