From: Nicolas Boisselier Date: Wed, 20 Mar 2019 12:08:38 +0000 (+0000) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=1d1979ad9fcc6babcddf2b0061fe1d479df2734c;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 4299dcfe..b7d8f0c5 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -846,7 +846,8 @@ cron_d_install() { #echo "$#"; return # NB 20.03.19 if [ $# -gt 4 -o $# = 0 ]; then if [ $# -gt 3 -o $# = 0 ]; then - shell_help_noarg "$usage" "--help" && return 1 + echo "$usage" 1>&2 && return 1 +# root 20.03.19 shell_help_noarg "$usage" "--help" && return 1 # NB 20.03.19 #elif [ $# -eq 3 ]; then # NB 20.03.19 elif [ ! -e "$1" ]; then @@ -854,7 +855,7 @@ cron_d_install() { # NB 20.03.19 tmp="/tmp/cron_d_install.$$" # NB 20.03.19 trap "rm -f $tmp*" RETURN # NB 20.03.19 file="$tmp.cron" - cat <<< "$1" > "$file"; shift +# root 20.03.19 cat <<< "$1" > "$file"; shift # NB 20.03.19 echo "$1" > "$file"; shift # NB 20.03.19 exp=$1; shift