Project

General

Profile

« Previous | Next » 

Revision 11605

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)

View differences:

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
 to force-remake, prepend `rm=1` to the command '
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