Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839183 - games-strategy/defcon-demo: automated shellcheck found errors
Summary: games-strategy/defcon-demo: automated shellcheck found errors
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 753515
Blocks:
  Show dependency tree
 
Reported: 2022-04-18 11:06 UTC by shellbugbot
Modified: 2023-12-15 21:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shellbugbot 2022-04-18 11:06:02 UTC
Shellckeck found errors in one or more shellscripts provided by games-strategy/defcon-demo.

Kindly refer to the findings below and the shellcheck wiki for further details:

------------------------------------------------
script: /usr/portage/games-strategy/defcon-demo/files/defcon:2

if [ -n "GAMEDIR/lib" ] ; then
         ^^^^^^^^^^^
error: Argument to -n is always true due to literal strings. (https://github.com/koalaman/shellcheck/wiki/SC2157)

This is an automated bug report. Conservative settings were used to minimize false-positives but there's still a chance that the above list contains non-issues.
Running shellcheck again with default settings could detect other possible issues.

References:
[1] this script: https://github.com/heeplr/gentoo-shellbug
[2] shellcheck: https://www.shellcheck.net/