]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 20 Mar 2019 12:08:38 +0000 (12:08 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 20 Mar 2019 12:08:38 +0000 (12:08 +0000)
etc/profile.d/functions

index 4299dcfe4cda52bfda16f87c3f9855d69b7a346c..b7d8f0c5a357057836969522b921f0b21eac8499 100755 (executable)
@@ -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