Commit 0cc1560
symtree.sh: add definition for missing function 'error'
Without the 'error' function, this script will not exit
failure on files that do not exist:
$ ./symtree.sh asdf
./symtree.sh: line 88: error: command not found
$ echo $?
0
The error function is copied from lddtree.sh
Signed-off-by: Scott Moser <smoser@brickies.net>
Part-of: #21
Closes: #21
Signed-off-by: Sam James <sam@gentoo.org>1 parent d279ca5 commit 0cc1560
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
0 commit comments