-
Notifications
You must be signed in to change notification settings - Fork 3
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
grammar fixes, quote vars in bash, fix README links #241
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
DEBIAN_RELEASES=$(debian-distro-info --supported) | ||
UBUNTU_RELEASES=$(ubuntu-distro-info --supported-esm) | ||
|
||
mkdir -p cli-repo/deb | ||
cd cli-repo/deb | ||
|
||
for release in ${DEBIAN_RELEASES[@]} ${UBUNTU_RELEASES[@]}; do | ||
for release in "${DEBIAN_RELEASES[@]}" "${UBUNTU_RELEASES[@]}"; do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This raises the question. I know that my shell linter config is different than Kyle's config, and our "format on save" features are overwriting each others quote / curly braces defaults. This is a small annoyance that we should reconcile as a team. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @davidbloss great question - I used GoLand and it pointed out these errors to me. I am pretty sure that it is using Having a CI routine that runs We added something like this at my old job that really helped prevent potentially bad code script changes from merging in. |
||
echo "Removing deb package of $release" | ||
reprepro -A i386 remove $release opslevel | ||
reprepro -A amd64 remove $release opslevel | ||
reprepro -A i386 remove "$release" opslevel | ||
reprepro -A amd64 remove "$release" opslevel | ||
done | ||
|
||
for release in ${DEBIAN_RELEASES[@]} ${UBUNTU_RELEASES[@]}; do | ||
for release in "${DEBIAN_RELEASES[@]}" "${UBUNTU_RELEASES[@]}"; do | ||
echo "Adding deb package to $release" | ||
reprepro includedeb $release ../../src/dist/*linux-64bit.deb | ||
reprepro includedeb $release ../../src/dist/*linux-32bit.deb | ||
reprepro includedeb "$release" ../../src/dist/*linux-64bit.deb | ||
reprepro includedeb "$release" ../../src/dist/*linux-32bit.deb | ||
done | ||
|
||
git add . | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#! /bin/sh | ||
|
||
go build -o $(which opslevel) | ||
go build -o "$(which opslevel)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added so that the CI can just exit if an error is encountered, preventing the script from trying to continue to run.