Revision 11605
Added by Aaron Marcuse-Kubitza about 11 years ago
lib/sh/util.sh | ||
---|---|---|
884 | 884 |
#### commands |
885 | 885 |
|
886 | 886 |
already_exists_msg() # usage: cond || what=... already_exists_msg || return 0 |
887 |
{ type=info die "$what already exists, skipping"; } |
|
887 |
{ |
|
888 |
type=info die "$what"' already exists, skipping |
|
889 |
[7m to force-remake, prepend `rm=1` to the command [0m' |
|
890 |
} |
|
888 | 891 |
|
889 | 892 |
require_not_exists() # usage: require_not_exists file || return 0 |
890 | 893 |
{ test ! -e "$1" || what="file \"$1\"" already_exists_msg; } |
Also available in: Unified diff
lib/sh/util.sh: already_exists_msg(): added instructions on how to force-remake when the file already exists (prepend `rm=1` to the command)