make sure that save screen has .html suffix by default
This commit is contained in:
parent
8a0dd8b44f
commit
b1e3323c63
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user