Skip to content

Commit

Permalink
Fix lint script shebang, args, and nix env checks (#2167)
Browse files Browse the repository at this point in the history
* Fix lint script shebang, args, and nix env checks

* Update lint.sh: fix lint issues

* Update lint.sh

Fix linting issue

---------

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
  • Loading branch information
fidgetingbits and disconnect3d committed May 21, 2024
1 parent 4b7bc1c commit 9fe3a87
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -o errexit

Expand All @@ -16,7 +16,7 @@ FIX=0

while [[ $# -gt 0 ]]; do
case $1 in
-f | --format)
-f | --fix)
FIX=1
shift
;;
Expand All @@ -31,7 +31,9 @@ if [[ -z "${PWNDBG_VENV_PATH}" ]]; then
PWNDBG_VENV_PATH="./.venv"
fi

source "${PWNDBG_VENV_PATH}/bin/activate"
if [[ "${PWNDBG_VENV_PATH}" != "PWNDBG_PLEASE_SKIP_VENV" ]]; then
source "${PWNDBG_VENV_PATH}/bin/activate"
fi

set -o xtrace

Expand Down

0 comments on commit 9fe3a87

Please sign in to comment.