From b1e3323c63d49e3901e9249e643cf65ca1039d58 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 14 Mar 2021 16:18:16 +0100 Subject: [PATCH] make sure that save screen has .html suffix by default --- save_screen.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/save_screen.sh b/save_screen.sh index 1a1fe7e..e670a2e 100755 --- a/save_screen.sh +++ b/save_screen.sh @@ -1,6 +1,6 @@ #!/bin/sh -filename=$(basename "$1") -file=$(zenity --file-selection --save --filename="$filename") +filename=$(basename -s ".html" "$1") +file=$(zenity --file-selection --save --filename="$filename.html") if [ -n "$file" ]; then cat > "$file" fi