diff options
| author | Jonathan Bauer | 2013-05-14 18:08:45 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2013-05-14 18:08:45 +0200 |
| commit | 4859e8376f1b8ff721fc3fe52c407d6fd31f3572 (patch) | |
| tree | 9ba1292139d27384ba9b07ad960f57344f339b8a | |
| parent | gconv back in (diff) | |
| download | tm-scripts-4859e8376f1b8ff721fc3fe52c407d6fd31f3572.tar.gz tm-scripts-4859e8376f1b8ff721fc3fe52c407d6fd31f3572.tar.xz tm-scripts-4859e8376f1b8ff721fc3fe52c407d6fd31f3572.zip | |
fix mount error when already mounted vmware store
| -rw-r--r-- | remote/modules/vmplayer/vmplayer.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/remote/modules/vmplayer/vmplayer.build b/remote/modules/vmplayer/vmplayer.build index 2689e12a..21d28dec 100644 --- a/remote/modules/vmplayer/vmplayer.build +++ b/remote/modules/vmplayer/vmplayer.build @@ -1,7 +1,9 @@ fetch_source() { #mount vmware bundle directory [ ! -d /mnt/store/vmware ] && mkdir -p /mnt/store/vmware - mount -t nfs -o ro,async,nolock 132.230.8.113:/srv/vmext /mnt/store/vmware || perror "Could not mount vmware bundle directory. Exiting." + if [ "x$(ls /mnt/store/vmware)" == "x" ]; then + mount -t nfs -o ro,async,nolock 132.230.8.113:/srv/vmext /mnt/store/vmware || perror "Could not mount vmware bundle directory. Exiting." + fi ARCH=$(uname -m) [ "$ARCH" = "i686" ] && ARCH=i386 local BUNDLE="$(find /mnt/store/vmware -type f -name "VMware-Player*.${ARCH}.bundle" | head -1)" |
