Revision 12980
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.sh | ||
---|---|---|
1094 | 1094 |
|
1095 | 1095 |
already_exists_msg() # usage: cond || what=... already_exists_msg || return 0 |
1096 | 1096 |
{ |
1097 |
save_e # needed because $(mk_hint) resets $? |
|
1097 | 1098 |
type=info die "$what already exists, skipping |
1098 | 1099 |
$(mk_hint 'to force-remake, prepend `rm=1` to the command')" |
1099 | 1100 |
} |
Also available in: Unified diff
bugfix: lib/sh/util.sh: already_exists_msg(): need to save_e, because new $(mk_hint) call resets $?