diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-10-31 19:40:38 +0100 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-10-31 19:40:38 +0100 |
commit | b80686294b58b58678bdca40b492733c44a40ba3 (patch) | |
tree | 1b0163b19080c45cb78fcd99c6ba4b98e67542ed | |
parent | 7a40222bc454ab66a5351e71d74459c80ba77cc2 (diff) | |
download | perl-app-clerk-b80686294b58b58678bdca40b492733c44a40ba3.tar.gz perl-app-clerk-b80686294b58b58678bdca40b492733c44a40ba3.tar.xz |
use proper test call for testing directory
-rwxr-xr-x | clerk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -129,7 +129,7 @@ browseFilesystem () { } chose() { - if [[ "$(file "$selection")" == ""$selection": directory" ]]; then + if [[ -d "$selection" ]]; then cd "$selection" selection="$(echo -e "Add all music files\n---\n$(ls)" | rofi -dmenu -p "Chose Directory/Files > ")" chose @@ -803,6 +803,7 @@ insertLastMod() { if [[ "$ALBUM" == "Adding Mode: Insert" ]] then replaceLastMod else +export MPD_HOST=127.0.0.1 artist=$(echo "$ALBUM" | awk -F " $seperator " '{print $2}') date=$(echo "$ALBUM" | awk -F " $seperator " '{print $1}') album=$(echo "$ALBUM" | awk -F " $seperator " '{print $3}') |