diff options
Diffstat (limited to 'collector')
-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 "" |