make sure that save screen has .html suffix by default

This commit is contained in:
gutmet 2021-03-14 16:18:16 +01:00
parent 8a0dd8b44f
commit b1e3323c63

View File

@ -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