Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn ssh xyz ; abc will only half-execute #1503

Open
2 tasks done
stdedos opened this issue Feb 28, 2019 · 0 comments
Open
2 tasks done

Warn ssh xyz ; abc will only half-execute #1503

stdedos opened this issue Feb 28, 2019 · 0 comments

Comments

@stdedos
Copy link
Contributor

stdedos commented Feb 28, 2019

For new checks and feature suggestions

Here's a snippet or screenshot that shows the problem:

#!/bin/bash
ssh -n "${i}" sudo apt-get update ; sudo apt-get install openssl=1.1.1b-0~ubuntu16.04.6+ppa.carsten+1 -y

Here's what shellcheck currently says:

Nothing

Here's what I wanted or expected to see:

SC1234: Are you sure you meant to execute only one remote command? (';' stops the command)

Note that e.g. &&, ||, | might be ... less-probable candidates for this linting, since, you might want to daisy-chain local commands from remote "status", or do "heavy-duty" processing on a microserver's output.

Not a "heavy" request, but more like something to discuss about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant