-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: webclient version and installation method
- Loading branch information
1 parent
e8d4469
commit 5a54bb3
Showing
19 changed files
with
258 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
bucket=$1 | ||
|
||
# exit when any command fails | ||
set -e | ||
|
||
delete_local_file() { | ||
rm -f $versionsFileDir | ||
} | ||
|
||
fileName="versions.csv" | ||
|
||
# if file not found, throws NoSuchKey error | ||
aws s3api get-object --bucket $bucket --key "content/versions.csv" $fileName | ||
|
||
versionsFileDir="./$fileName"; | ||
versions=$(<$versionsFileDir) | ||
|
||
allPairsArr=(${versions}); | ||
|
||
# verify current versions in versions.csv file contain valid client,version pairs | ||
scriptString="arw-script" | ||
moduleString="arw-module" | ||
|
||
for singlePair in "${allPairsArr[@]}"; | ||
do | ||
IFS=',' read -ra singlePairArr <<< "$singlePair" | ||
|
||
if [ ${singlePairArr[0]} != $scriptString ] && [ ${singlePairArr[0]} != $moduleString ] | ||
then | ||
delete_local_file | ||
|
||
echo ERROR: INVALID CLIENT | ||
echo ${singlePairArr[0]} | ||
exit 1 | ||
fi | ||
|
||
if ! [[ ${singlePairArr[1]} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] | ||
then | ||
delete_local_file | ||
|
||
|
||
echo ERROR: INVALID VERSION | ||
echo ${singlePairArr[1]} | ||
exit 1 | ||
fi | ||
|
||
done | ||
|
||
delete_local_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,10 @@ | |
{ | ||
"name": "spec" | ||
} | ||
] | ||
], | ||
"compilerOptions": { | ||
"typescript": { | ||
"configPath": "./tsconfig.testcafe.json" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.