We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e60dff commit 18e07d5Copy full SHA for 18e07d5
scripts/loadRPackage.sh
@@ -1,14 +1,22 @@
1
2
3
-
+# Read recommended R package version from package.json
4
VERSION=$(cat package.json | jq -r .rPackageInfo.recommended)
5
6
URL=https://api.github.com/repos/ManuelHentschel/vscDebugger/releases/tags/v$VERSION
7
8
echo $URL
9
10
+# Read info about release assets from GitHub API
11
ASSETS=$(curl $URL | jq -r .assets)
12
13
+# Abort, if no release/assets available
14
+if [ "$ASSETS" == "null" ]; then
15
+ echo "No vscDebugger release with version $VERSION found!"
16
+ exit 1
17
+fi
18
+
19
+# Loop over assets and download them if they are vscDebugger binaries
20
i=0
21
NAME=$(echo $ASSETS | jq -r .[$i].name)
22
0 commit comments