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
Here's a snippet or screenshot that shows the problem:
#!/usr/bin/env bash
…
# COMMDIR - home dir for common utils
COMMDIR="${HOME}/Developer/common"## read/write access to $PROJDIR is required
[ -d"${COMMDIR}" ] || die "warning: no directory found at- ${COMMDIR}" 0
[ -w"${COMMDIR}" ] \
|| { ERR="$?"; die "write access to ${COMMDIR} is required. Error: $ERR""$ERR"; }
Here's what shellcheck currently says:
In common/bin/commfresh.sh line 90:
|| { ERR="$?" ; die "write access to ${COMMDIR} is required. Error: $ERR" "$ERR" ; }
^-- SC2319 (warning): This $? refers to a condition, not a command. Assign to a variable to avoid it being overwritten.
Here's what I wanted or expected to see:
No warning using local executable, like I see no warning using shellcheck.net.
The text was updated successfully, but these errors were encountered:
For bugs
shellcheck --version
or "online"): version: 0.10.0Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
In common/bin/commfresh.sh line 90:
|| { ERR="$?" ; die "write access to ${COMMDIR} is required. Error: $ERR" "$ERR" ; }
^-- SC2319 (warning): This $? refers to a condition, not a command. Assign to a variable to avoid it being overwritten.
Here's what I wanted or expected to see:
No warning using local executable, like I see no warning using shellcheck.net.
The text was updated successfully, but these errors were encountered: