Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    Think about what happens if the variable RPM is empty? (or if you tried to run a command like $foo arg otherarg with never having set foo) Commented Dec 11, 2017 at 18:11
  • Checking your code with shellcheck is a great start. Commented Dec 11, 2017 at 18:34
  • Also, Ubuntu, being derived from Debian, uses apt for its package management rather than rpm or yum. Commented Dec 11, 2017 at 18:36
  • Hmm, I hope the code you're really trying to run has normal spaces instead of the ones in this code block (I'm not sure what they are) Commented Dec 11, 2017 at 18:51