You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My shellcheck version (shellcheck --version or "online"): 0.6.0 (installed with stack intall ShellCheck) today
Here's a snippet or screenshot that shows the problem:
#!/bin/bashset -euo pipefail
file_last_retag="$HOME/.offlineimap/Mail/.notmuch/last_retag"# Before we sync via IMAP we need to move re-tagged mails
/home/varac/.local/bin/afew -m
. /home/varac/bin/include.d/check_connectivity
# fetch mail
timeout 2m ~/bin/old/offlineimap_concurrent.sh
# retagif [ -f"$file_last_retag" ]
then
rev_last_retag=$(tail -1 "$file_last_retag"| tr -d '\0'| cut -f4)else
rev_last_retag=0
fiif! [[ $rev_last_retag=~ ^[0-9]+$ ]]
thenecho"Warning - Can't read last notmuch offset from $file_last_retag - Exiting."exit 1
fi
rev_lastmod=$(notmuch count --lastmod | cut -f3)
notmuch tag +new lastmod:"${rev_last_retag}..${rev_lastmod}"
notmuch new
# lastmod has changed after tagging
rev_lastmod=$(notmuch count --lastmod)echo -e "$(date +%Y-%m-%d-%H:%M:%S)\t${rev_lastmod}">>~/.offlineimap/Mail/.notmuch/last_retag
notmuch address --format=sexp --output=recipients --deduplicate=address query:from-me >~/.config/notmuch/addresses
Here's what shellcheck currently says:
Pointing shellcheck to the file directly shows one issue;
~/bin $ shellcheck -s bash ~/bin/fetch-mail.sh
In /home/varac/bin/fetch-mail.sh line 10:
. /home/varac/bin/include.d/check_connectivity
^-- SC1091: Not following: /home/varac/bin/include.d/check_connectivity was not specified as input (see shellcheck -x).
For more information:
https://www.shellcheck.net/wiki/SC1091 -- Not following: /home/varac/bin/in...
When using stdin (like Vim ALE does) fails to show the issue:
For bugs
0.6.0
(installed withstack intall ShellCheck
) todayHere's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Pointing shellcheck to the file directly shows one issue;
When using stdin (like Vim ALE does) fails to show the issue:
Here's what I wanted or expected to see:
The text was updated successfully, but these errors were encountered: