clean up scripts
This commit is contained in:
12
.config/polybar/scripts/inbox-pop3-shellnetrc.sh
Normal file
12
.config/polybar/scripts/inbox-pop3-shellnetrc.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
SERVER=""
|
||||
NETRC=".netrc"
|
||||
|
||||
inbox=$(curl -sf --netrc-file "$NETRC" pop3s://"$SERVER" | wc -l)
|
||||
|
||||
if [ "$inbox" -gt 0 ]; then
|
||||
echo "# $inbox"
|
||||
else
|
||||
echo ""
|
||||
fi
|
Reference in New Issue
Block a user