diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-27 16:33:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-27 16:33:55 -0300 |
commit | 9e2ce95bc99977bf47c9cfbe3489440cdd3418d7 (patch) | |
tree | 66cf8fa72d4dcbad78a6b557ebb98196ccc5a746 | |
parent | d37ff984209438d7e88361cf33bb2369abaee7b4 (diff) | |
download | scripts-9e2ce95bc99977bf47c9cfbe3489440cdd3418d7.tar.gz scripts-9e2ce95bc99977bf47c9cfbe3489440cdd3418d7.tar.bz2 |
Fix: collector: use '~' instead of full home folder pathname
-rwxr-xr-x | collector | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 "" |