From 2d38e1368cc264b7f12c5552bdd65339e0873cb9 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 17 May 2023 16:57:17 +0100 Subject: Fix issues wth xitui not showing text --- src/lib/xilib.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/lib/xilib.sh b/src/lib/xilib.sh index 57dd10c..5c662a9 100644 --- a/src/lib/xilib.sh +++ b/src/lib/xilib.sh @@ -32,3 +32,15 @@ reverse_lines () { } +#!/bin/sh + +basename () { + name=$1 + suf=$2 + pre=${name%/*} + name=${name#$pre/} + + echo ${name#$suf} +} + +basename -- cgit v1.2.1