fix: warnings of ShellCheck

SC2155: Declare and assign separately to avoid masking return values.
SC2164: Use cd ... || exit in case cd fails.
SC2230: which is non-standard. Use builtin 'command -v' instead.
This commit is contained in:
VeryTastyTomato authored and David Peter committed 2020-12-21 09:08:54 +01:00
1 parent 60e00d49a9
commit 973ea984c8
4 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(dirname "${BASH_SOURCE[0]}")" || exit
python="python3"
if ! command -v python3 &>/dev/null; then python="python"; fi