Added versioning - 0.1.2

This commit is contained in:
phil committed 2026-10-29 22:14:05 +00:00
1 parent 73e60e5797
commit 5550771ab1
3 files changed
+217 -89

No files matched your search

+12 -1
View File
@@ -48,6 +48,7 @@ show_output() {
shift
local output="$TMPDIR_TOOLKIT/output.txt"
local status=0
local lines cols height width
"$@" >"$output" 2>&1 || status=$?
@@ -57,7 +58,17 @@ show_output() {
printf '\nCommand exited with status %s.\n' "$status" >>"$output"
fi
whiptail --title "$title" --textbox "$output" 24 85
# Leave room around the dialog; use sensible fallback sizes if tput fails.
lines=$(tput lines 2>/dev/null || printf '24')
cols=$(tput cols 2>/dev/null || printf '80')
height=$((lines - 4))
width=$((cols - 4))
# Keep dimensions within whiptail's practical limits.
(( height < 12 )) && height=12
(( width < 50 )) && width=50
whiptail --title "$title" --textbox "$output" "$height" "$width"
}
confirm_action() {