Skip to content

Commit

Permalink
Merge pull request #12 from daPhipz/shellcheck-action
Browse files Browse the repository at this point in the history
Add Shellcheck
  • Loading branch information
ricktimmis authored Apr 17, 2024
2 parents 920b138 + f3bea01 commit 066dcc0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/shellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Run shellcheck on push

on: [push, pull_request]
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Shellcheck
uses: ludeeus/action-shellcheck@master
3 changes: 2 additions & 1 deletion KubuQA.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=SC1090

# This script automates downloading the latest daily ISO for Kubuntu and spinning up a VM in VirtualBox.
# It uses VBoxManage to set up the VM, look here for documentation: https://www.virtualbox.org/manual/ch08.html
Expand Down Expand Up @@ -130,7 +131,7 @@ function check_existing_vdi() {
function check_existing_iso() {
# Ensure the ISO Download directory exists
mkdir -p "$ISO_DOWNLOAD_DIR"
cd "$ISO_DOWNLOAD_DIR"
cd "$ISO_DOWNLOAD_DIR" || kdialog --error "There is something wrong with the ISO Download directory. Make sure it is accessible."
# Check if the ISO file exists, and has already been downloaded
if [ -f "$ISO_FILENAME" ]; then
# Prompt the user to check for updates
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Keep in mind that when the same variable is being set multiple times (e.g. in a
If you have ideas for additions or improvements please do create an Issue,
or open a Pull Request on our [Github KubuQA](https://github.com/kubuntu-team/KubuQA).

Please make sure your code contribution passes [Shellcheck](https://github.com/koalaman/shellcheck), to ensure good code quality.

### Ideas (so far)

- [ ] [Introductory dialog that gives an overview of what is about to happen](https://github.com/kubuntu-team/KubuQA/issues/7)
Expand Down

0 comments on commit 066dcc0

Please sign in to comment.