Revision 12842
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
1068 | 1068 |
|
1069 | 1069 |
already_exists_msg() # usage: cond || what=... already_exists_msg || return 0 |
1070 | 1070 |
{ |
1071 |
type=info die "$what"' already exists, skipping
|
|
1072 |
[0;7m to force-remake, prepend `rm=1` to the command [0m'
|
|
1071 |
type=info die "$what already exists, skipping |
|
1072 |
$(mk_hint 'to force-remake, prepend `rm=1` to the command')"
|
|
1073 | 1073 |
} |
1074 | 1074 |
|
1075 | 1075 |
require_not_exists() # usage: require_not_exists file || return 0 |
Also available in: Unified diff
lib/sh/util.sh: manual terminal escape sequences: use highlight_msg() instead