projects
/
fgen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50e9e18
)
Abort on all errors
author
Hugo Villeneuve
<hugo@hugovil.com>
Thu, 5 Oct 2023 21:55:09 +0000
(17:55 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 7 Oct 2023 15:45:53 +0000
(11:45 -0400)
fgen.sh
patch
|
blob
|
history
diff --git
a/fgen.sh
b/fgen.sh
index
fcc1678
..
99bc69d
100755
(executable)
--- a/
fgen.sh
+++ b/
fgen.sh
@@
-3,6
+3,9
@@
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2023 Hugo Villeneuve <hugo@hugovil.com>
+# Abort on all errors
+set -e
+
PROG_NAME=$(basename $0)
# Set default values
@@
-62,10
+65,9
@@
function get_frame_id()
frame=$(echo "${1}" | grep -e "label:[0-9]" | ${SED} "s/label:\([0-9]\+\),.*/\1/g")
if [ x"${frame}" = x"" ]; then
- return 1
+ echo ""
else
echo "${frame}"
- return 0
fi
}