From f65748c5337e3692123364949067e5a5a26a8ebf Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 19 Jul 2024 03:29:37 -0300 Subject: [PATCH] Inline utils/printerr, utils/printok --- libexec/sourcezap/functions.sh | 4 ++-- libexec/sourcezap/utils/printerr | 10 ---------- libexec/sourcezap/utils/printok | 10 ---------- 3 files changed, 2 insertions(+), 22 deletions(-) delete mode 100755 libexec/sourcezap/utils/printerr delete mode 100755 libexec/sourcezap/utils/printok diff --git a/libexec/sourcezap/functions.sh b/libexec/sourcezap/functions.sh index 105480d..a2ad165 100644 --- a/libexec/sourcezap/functions.sh +++ b/libexec/sourcezap/functions.sh @@ -7,10 +7,10 @@ git() printok() { - "${libexec}"/utils/printok "${@}" + printf "ok: %s\n" "${msg}" > /dev/stdout } printerr() { - "${libexec}"/utils/printerr "${@}" + printf "error: %s\n" "${err}" > /dev/stderr } diff --git a/libexec/sourcezap/utils/printerr b/libexec/sourcezap/utils/printerr deleted file mode 100755 index 8fdbff6..0000000 --- a/libexec/sourcezap/utils/printerr +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -e - -## -# variables -err="${1}" - -## -# main -printf "error: %s\n" "${err}" > /dev/stderr diff --git a/libexec/sourcezap/utils/printok b/libexec/sourcezap/utils/printok deleted file mode 100755 index 315f891..0000000 --- a/libexec/sourcezap/utils/printok +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -e - -## -# variables -msg="${1}" - -## -# main -printf "ok: %s\n" "${msg}" > /dev/stdout