diff --git a/.github/workflows/cI.yml b/.github/workflows/cI.yml index e7cadb0..88fbfee 100644 --- a/.github/workflows/cI.yml +++ b/.github/workflows/cI.yml @@ -12,11 +12,15 @@ on: jobs: lint: - run-on: ubuntu-latest - uses: actions/checkout@v4 + runs-on: ubuntu-latest # Steps steps: + + # Checkout repository + - name: Checkout repository + uses: actions/checkout@v4 + # Install shellcheck to check for sytax errors and best practices in scripts - name: Install shellcheck run: sudo apt-get install -y -qq shellcheck diff --git a/ram-check.sh b/ram-check.sh index a983e3b..da65d48 100755 --- a/ram-check.sh +++ b/ram-check.sh @@ -12,7 +12,7 @@ RAM_USAGE=$(free | grep Mem | awk '{print $3/$2 * 100.0}') # Discard the fraction after the dot CURRENT_USAGE=${RAM_USAGE%.*} -if (( CURRENT_USAGE > $THRESHOLD )); then +if (( CURRENT_USAGE > THRESHOLD )); then # zenity displays the message and disappears only when you press "Ok" # I prefer this over notify-send. You can miss the brief notify-send message zenity --info --title="RAM WATCHDOG" --text="Your RAM usage just passed ${THRESHOLD}%"