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.
1 parent 7c8d391 commit 5f6a185Copy full SHA for 5f6a185
bump_client.sh
@@ -1,5 +1,16 @@
1
#!/usr/bin/env bash
2
3
+
4
+# http://stackoverflow.com/a/246128/312785
5
+path="${BASH_SOURCE[0]}"
6
+while [ -h "$path" ] ; do
7
+ dir="$(cd -P "$(dirname "$path")" && pwd)"
8
+ path="$(readlink "$path")"
9
+ [[ $path == /* ]] || path="$dir/$path"
10
+done
11
+dir="$(cd -P "$(dirname "$path")" && pwd)"
12
13
14
# replaces the version token and writes it back over itself
15
FILE=dist/client.js
16
sed -e 's/@@REACTOTRON_VERSION@@/'"$VERSION"'/g' $FILE > $FILE.tmp && mv $FILE.tmp $FILE
0 commit comments