diff options
| author | merakor <cem@ckyln.com> | 2020-08-31 08:41:52 +0000 | 
|---|---|---|
| committer | merakor <cem@ckyln.com> | 2020-08-31 08:41:52 +0000 | 
| commit | 4eede95064c255b47b6687e62ece4939d427b675 (patch) | |
| tree | 84195aa95aa14e9dffe3be983c5d29d8643120d3 /src | |
| parent | 7a30a890bfabcc5562eede5bd3d3774ad9ac0a5c (diff) | |
| download | cpt-4eede95064c255b47b6687e62ece4939d427b675.tar.gz | |
warn(): change function behaviour
FossilOrigin-Name: f656276fa8b49293b453b1819302d86ea2124357ada00b511e3181601279e0ef
Diffstat (limited to 'src')
| -rw-r--r-- | src/cpt-lib | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpt-lib b/src/cpt-lib index a3e0a8f..f2e8caf 100644 --- a/src/cpt-lib +++ b/src/cpt-lib @@ -281,7 +281,7 @@ getoptions_help() {  warn() {      # Print a warning message -    log "WARN" "$1" "${2:-!>}" +    log "$1" "$2" "${3:-WARNING}"  }  contains() { @@ -1316,7 +1316,7 @@ pkg_etc() {              # All other cases.              *) -                warn "($pkg_name) saving /$file as /$file.new" "->" +                warn "$pkg_name" "saving /$file as /$file.new" "->"                  new=.new              ;;          esac @@ -1771,7 +1771,7 @@ main() {      # Make sure that the CPT_ROOT doesn't end with a '/'. This might      # break some operations.      [ -z "$CPT_ROOT" ] || [ "${CPT_ROOT##*/}" ] || { -        warn "Your CPT_ROOT variable shouldn't end with '/'" +        warn "" "Your CPT_ROOT variable shouldn't end with '/'"          CPT_ROOT=${CPT_ROOT%/}      }  | 
