File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,24 @@ read_email() {
24
24
done
25
25
}
26
26
27
+ get_latest_release () {
28
+ REPO_OWNER=" ishaan-jaff"
29
+ REPO_NAME=" clerkie-cli"
30
+ local RELEASE_INFO=$( curl -s https://api.github.com/repos/$REPO_OWNER /$REPO_NAME /releases/latest)
31
+ local RELEASE_URL=$( echo " $RELEASE_INFO " | grep ' "zipball_url":' | sed -E ' s/.*"([^"]+)".*/\1/' )
32
+ echo " $RELEASE_URL "
33
+ }
34
+
35
+
36
+
27
37
main () {
28
38
CLERKIE_DIR=$HOME /.clerkie-cli
29
39
START=$PWD
40
+ rm -rf $CLERKIE_DIR
30
41
mkdir -p $CLERKIE_DIR
31
42
cd $CLERKIE_DIR
32
43
33
- RELEASE_URL=" https://github.com/ishaan-jaff/clerkie-cli/archive/refs/tags/v0.0.2-beta.zip "
44
+ RELEASE_URL=$( get_latest_release )
34
45
echo " $RELEASE_URL "
35
46
36
47
echo " downloading latest release in $CLERKIE_DIR "
You can’t perform that action at this time.
0 commit comments