ptgdp: Be more accurate in error messages
This commit is contained in:
3
ptgdp
3
ptgdp
@@ -127,7 +127,8 @@ rofimenu() {
|
|||||||
}
|
}
|
||||||
playlist() {
|
playlist() {
|
||||||
[ -z "$1" ] && return 1
|
[ -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
|
[ -r "$1" ] || error "Cannot read playlist \"$1\"" 51
|
||||||
if ! [ -f "$_musicdir/.symlink" ]; then
|
if ! [ -f "$_musicdir/.symlink" ]; then
|
||||||
if ln -s "$_musicdir" "$_musiclink" > /dev/null 2>&1; then
|
if ln -s "$_musicdir" "$_musiclink" > /dev/null 2>&1; then
|
||||||
|
Reference in New Issue
Block a user