This commit is contained in:
Marc Beninca 2024-08-26 15:59:25 +02:00
parent a3b2abb004
commit 008312a322
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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
}