summaryrefslogtreecommitdiffstats
path: root/blueman_open
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2009-12-15 08:29:42 -0600
committerRobby Workman <rworkman@slackware.com>2009-12-15 08:29:42 -0600
commit0838610086699a16933a6027952830cff0efef33 (patch)
tree2c3c424c892eb1bfba81c67e8c29db1466009db0 /blueman_open
parentacc62cd1d26916096f4cc42fc65b80e8f75d0ba4 (diff)
downloadblueman-open-0838610086699a16933a6027952830cff0efef33.tar.xz
Tweaks to the directory creation
Default to /mnt as $basedir Set dir=$basedir/$device_name No need to $(mkdir $basedir/$device_name) early - the directory will be created later in a function
Diffstat (limited to 'blueman_open')
-rwxr-xr-xblueman_open4
1 files changed, 3 insertions, 1 deletions
diff --git a/blueman_open b/blueman_open
index a1982c4..f51a881 100755
--- a/blueman_open
+++ b/blueman_open
@@ -11,8 +11,10 @@ fi
device_addr=$1
own_name=$(basename $0)
-dir=$(mkdir)/mnt/$device_addr
+basedir=${basedir:-/mnt}
+dir=${basedir}/$device_addr
browser=${browser:-"xdg-open"}
+
count=0
# Check for kdialog