Fix lint script shebang, args, and nix env checks (#2167)

* 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>
pull/2172/head
Aaron Adams 2 years ago committed by GitHub
parent 4b7bc1c062
commit 9fe3a87b52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -o errexit
@ -16,7 +16,7 @@ FIX=0
while [[ $# -gt 0 ]]; do
case $1 in
-f | --format)
-f | --fix)
FIX=1
shift
;;
@ -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

Loading…
Cancel
Save