]> gitweb.fluxo.info Git - scripts.git/commitdiff
Fix: collector: use '~' instead of full home folder pathname
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 27 Jul 2024 19:33:55 +0000 (16:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 27 Jul 2024 19:33:55 +0000 (16:33 -0300)
collector

index 5967e523dcb41a19fe18ad8ffedc82af070aacb1..570d13c975e3f170f880290bf6a4eb03a6e26acf 100755 (executable)
--- 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 ""