From 008312a3222513b4c18b56c94d78964d350b0b91 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 26 Aug 2024 15:59:25 +0200 Subject: [PATCH] cat/1 --- spcd/bootstrap.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 26bfeed..88c1dfa 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -183,11 +183,10 @@ _spcd_frame_shut() { # ╰───────────┴────╯ _spcd_os_cat() { - spcd_cat__file="${1}" - if [ -n "${spcd_cat__file}" ]; then - _spcd_frame_open "${spcd_cat__file}" - cat "${spcd_cat__file}" - _spcd_frame_shut "${spcd_cat__file}" + if [ -n "${1}" ]; then + _spcd_frame_open "${1}" + cat "${1}" + _spcd_frame_shut "${1}" fi }