summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-10-31 19:40:38 +0100
committerRasmus Steinke <rasi@xssn.at>2014-10-31 19:40:38 +0100
commitb80686294b58b58678bdca40b492733c44a40ba3 (patch)
tree1b0163b19080c45cb78fcd99c6ba4b98e67542ed
parent7a40222bc454ab66a5351e71d74459c80ba77cc2 (diff)
downloadperl-app-clerk-b80686294b58b58678bdca40b492733c44a40ba3.tar.gz
perl-app-clerk-b80686294b58b58678bdca40b492733c44a40ba3.tar.xz
use proper test call for testing directory
-rwxr-xr-xclerk3
1 files changed, 2 insertions, 1 deletions
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}')