jptgdp: Ensure that -r and -f conflict

This commit is contained in:
Salt 2019-06-14 06:22:00 -05:00
parent 89483e23c0
commit 0b9f14d2be

1
jptgdp
View File

@ -183,6 +183,7 @@ main() {
;; ;;
esac esac
done done
[ -n "$_optfile" ] && [ -n "$_optrofi" ] && error "Flags -f and -r conflict" 2
[ -n "$_optdownloadonly" ] && [ -n "$_optautoplay" ] && error "Flags -d and -p conflict" 2 [ -n "$_optdownloadonly" ] && [ -n "$_optautoplay" ] && error "Flags -d and -p conflict" 2
if [ -n "$_optrofi" ]; then rofimenu; exit $?; fi if [ -n "$_optrofi" ]; then rofimenu; exit $?; fi
if [ -n "$_optfile" ]; then playlist "$_optfile"; exit $?; fi if [ -n "$_optfile" ]; then playlist "$_optfile"; exit $?; fi