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 #!/bin/sh
filename=$(basename "$1") filename=$(basename -s ".html" "$1")
file=$(zenity --file-selection --save --filename="$filename") file=$(zenity --file-selection --save --filename="$filename.html")
if [ -n "$file" ]; then if [ -n "$file" ]; then
cat > "$file" cat > "$file"
fi fi