ptgdp: Be more accurate in error messages

This commit is contained in:
Salt 2019-07-04 04:07:33 -05:00
parent 6ed11f8c8a
commit 4dbdcd893f

3
ptgdp
View File

@ -127,7 +127,8 @@ rofimenu() {
}
playlist() {
[ -z "$1" ] && return 1
[ -f "$1" ] || error "Attempted to access non-file playlist \"$1\"" 50
[ -e "$1" ] || error "Playlist \"$1\" does not exist" 50
[ -f "$1" ] || error "Playlist \"$1\" is not a file" 50
[ -r "$1" ] || error "Cannot read playlist \"$1\"" 51
if ! [ -f "$_musicdir/.symlink" ]; then
if ln -s "$_musicdir" "$_musiclink" > /dev/null 2>&1; then