Skip to content

Commit

Permalink
add mac opensmb bash
Browse files Browse the repository at this point in the history
  • Loading branch information
kugouming committed Sep 10, 2016
1 parent 4324440 commit c720825
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bash/mac_opensmb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
smbpath="/Volumes/work"

function opensmb() {
smbpath=$1
if [ ! -d "$smbpath" ]; then
open smb:https://xxxx.baidu.com
else
umount $smbpath 2>/dev/null
rm -rf $smbpath 2>/dev/null
open smb:https://xxxx.baidu.com
fi
}

opensmb $smbpath

0 comments on commit c720825

Please sign in to comment.