mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 15:43:02 +02:00
test: cosmetic update + shellcheck
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -10,9 +10,17 @@ envdir="$HOME/.infix/venv"
|
||||
qeneth="$testdir/qeneth/qeneth"
|
||||
runners="podman docker"
|
||||
|
||||
#
|
||||
# Interactive prompt in 'make test-sh'
|
||||
#
|
||||
build_ps1()
|
||||
{
|
||||
echo "\e[1m\$(date \"+%H:%M:%S\") \h$1\e[0m:\W # "
|
||||
local time="\[\e[1;32m\]" # Bold green for time
|
||||
local host="\[\e[1;34m\]" # Bold blue for hostname
|
||||
local dir="\[\e[1;33m\]" # Bold yellow for working directory
|
||||
local reset="\[\e[0m\]" # Reset color
|
||||
|
||||
printf "${time}\$(date "+%%H:%%M:%%S") ${host}\h$1${reset}:${dir}\W${reset} # "
|
||||
}
|
||||
|
||||
#
|
||||
@@ -21,8 +29,8 @@ build_ps1()
|
||||
runner()
|
||||
{
|
||||
for r in $runners; do
|
||||
which $r >/dev/null && {
|
||||
echo $r
|
||||
which "$r" >/dev/null && {
|
||||
echo "$r"
|
||||
return
|
||||
}
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user