Skip to content

Conversation

aqw
Copy link

@aqw aqw commented Jul 18, 2018

This is just a variety of cleanup and unifying of some of the checks across the scripts, since each script did things a bit differently.

There's a lot of small errors left in these scripts --- some dangerous (unquoted rm, etc). But I didn't want to send a big stack of changes if they weren't wanted.

These patches are pretty independent, so feel free to cherry-pick as you see fit. If you're interested in more cleanup, let me know and I'll be happy to spend more time on it.

---Alex

aqw added 5 commits July 17, 2018 10:55
Lots of small cleanup around here. Added '?' to the getopts loop list, escaped
'?' appropriately, and no longer exit with error when the user requests the help
text to print.
The ':' in getops already ensures that these flags are passed arguments. This
checks the argument vars (which will be set) to infer whether these flags were
declared.
A few notes:

* [-a ] is deprecated in favor of the more common [ -e ]
* Bash supports Substring Extraction, so even less of a need to invoke `cut` and
  a subshell to get one character.
* use shell's pattern matching rather than invoking awk; use file's -b option
  for convenience.
@aqw
Copy link
Author

aqw commented Jul 18, 2018

Seems the new build failure is unrelated to my patches, and is likely due to the interaction of

  1. 4 year old ubuntu release
  2. mixing and matching distro repos (e.g. debian unstable on ubuntu)
  3. loads of external repos, advertising who knows what versions of what packages

aqw added 2 commits July 18, 2018 15:52
Travis's stuff is... odd. They white list a bajillion external repos, but not
Canonical's official backports for Trusty. One of many unfortunate oddities on
the service.

Because it's a new repo, I have to use "require: sudo", which gets us on the VM
infra rather than the container infra. It's worth it though, to actually get
this working.
@aqw
Copy link
Author

aqw commented Jul 20, 2018

Build finally passes. shellcheck is now installed from Trusty backports rather than Debian sid.

@aqw
Copy link
Author

aqw commented Dec 6, 2018

ping?

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

Successfully merging this pull request may close these issues.

1 participant