Use --file-selector instead of --prompt

This commit is contained in:
Adrian Kuschelyagi Malacoda 2021-10-07 20:05:09 -05:00
parent 1fac9b9378
commit fc4d7f1f43

View File

@ -1,7 +1,7 @@
#!/bin/sh
JAR_PATH="@JAR_PATH@"
if [ $1 == "--prompt" ]; then
if [ "$1" = "--file-selector" ]; then
RESULT=$(java -jar "$JAR_PATH" $(yad --file))
else
RESULT=$(java -jar "$JAR_PATH" $@)