zenity/scripts/file.sh

12 lines
209 B
Bash
Raw Normal View History

2022-03-24 12:37:21 -04:00
#!/bin/sh
FILE=`zenity --file-selection --title="Select a File"`
case $? in
0)
echo "\"$FILE\" selected.";;
1)
echo "No file selected.";;
-1)
echo "An unexpected error has occurred.";;
esac