Project

General

Profile

« Previous | Next » 

Revision 14762

fix: lib/sh/util.sh: already_exists_msg(): changed calling convention to avoid it seeming like `return 0` is run if already_exists_msg() throws an error, when in fact already_exists_msg() is just a command that should be run before returning/errexiting

View differences:

db.sh
28 28
fi # load new aliases
29 29
if self_being_included; then
30 30

  
31
skip_table() # usage: create_table || table=... skip_table || return 0
31
skip_table() # usage: create_table || { table=... skip_table; return 0; }
32 32
{ what="table $table" already_exists_msg; }
33 33

  
34 34
: "${test=$(isset limit; exit2bool)}" # test mode when using limited # rows

Also available in: Unified diff