mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-12-06 04:43:46 +00:00
18 lines
No EOL
378 B
Bash
Executable file
18 lines
No EOL
378 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Smoke checks for the dh launcher script
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")" && cd ..
|
|
|
|
echo "[dh] syntax check..."
|
|
bash -n ./dh
|
|
echo "OK: dh passes bash -n"
|
|
|
|
if command -v shellcheck >/dev/null 2>&1; then
|
|
echo "[dh] shellcheck..."
|
|
shellcheck -S error ./dh
|
|
echo "OK: dh passes shellcheck"
|
|
else
|
|
echo "SKIP: shellcheck not installed"
|
|
fi |