From b80686294b58b58678bdca40b492733c44a40ba3 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Fri, 31 Oct 2014 19:40:38 +0100 Subject: use proper test call for testing directory --- clerk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clerk b/clerk index 69f9885..9c52747 100755 --- a/clerk +++ b/clerk @@ -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}') -- cgit v1.2.3-24-g4f1b