From 4eede95064c255b47b6687e62ece4939d427b675 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 31 Aug 2020 08:41:52 +0000 Subject: warn(): change function behaviour FossilOrigin-Name: f656276fa8b49293b453b1819302d86ea2124357ada00b511e3181601279e0ef --- src/cpt-lib | 6 +++--- 1 file 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%/} } -- cgit v1.2.3