From 9e2ce95bc99977bf47c9cfbe3489440cdd3418d7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 27 Jul 2024 16:33:55 -0300 Subject: Fix: collector: use '~' instead of full home folder pathname --- collector | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/collector b/collector index 5967e52..570d13c 100755 --- a/collector +++ b/collector @@ -30,7 +30,9 @@ elif [ "$ACTION" == "add" ]; then echo "* $*" >> "$COLLECTOR_FILE" elif [ "$ACTION" == "list" ]; then if grep -q -e "^ *\* " "$COLLECTOR_FILE"; then - echo "Collected items at $COLLECTOR_FILE:" + COLLECTOR_NAME="`echo $COLLECTOR_FILE | sed -e "s|$HOME|~|"`" + + echo "Collected items at $COLLECTOR_NAME:" echo "" grep -e "^ *\* " "$COLLECTOR_FILE" echo "" -- cgit v1.2.3