10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79e815c + 85c8d2f commit 6fc4301Copy full SHA for 6fc4301
rsvm.sh
@@ -10,7 +10,14 @@ RSVM_NORMAL_PATTERN="[0-9]+\.[0-9]+(\.[0-9]+)?(-(alpha|beta)(\.[0-9]*)?)?"
10
RSVM_RC_PATTERN="$RSVM_NORMAL_PATTERN-rc(\.[0-9]+)?"
11
RSVM_VERSION_PATTERN="($RSVM_NIGHTLY_PATTERN|$RSVM_NORMAL_PATTERN|$RSVM_RC_PATTERN|$RSVM_BETA_PATTERN)"
12
RSVM_LAST_INSTALLED_VERSION=
13
-RSVM_SCRIPT=${BASH_SOURCE[0]}
+
14
+if [ -n "$ZSH_VERSION" ]
15
+then
16
+ RSVM_SCRIPT=${(%):-%N}
17
+ RSVM_SCRIPT="$(cd -P "$(dirname "$RSVM_SCRIPT")" && pwd)/$(basename "$RSVM_SCRIPT")"
18
+else
19
+ RSVM_SCRIPT=${BASH_SOURCE[0]}
20
+fi
21
22
RSVM_ARCH=`uname -m`
23
RSVM_OSTYPE=`uname -s`
0 commit comments