This repository has been archived by the owner on Oct 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b90719
commit 5ec3ee1
Showing
3 changed files
with
42 additions
and
0 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,38 @@ | ||
#!/bin/bash | ||
|
||
gettag(){ | ||
curl https://api.github.com/repos/langong-dev/LanFilePackage/releases/latest > val | ||
cat val | jq '.tag_name' > tag | ||
cat val | jq '.target_commitish' > mas | ||
read tag < tag | ||
read mas < mas | ||
rm -f tag | ||
rm -f mas | ||
rm -f val | ||
tag=${tag//\"/} | ||
mas=${mas//\"/} | ||
} | ||
|
||
echo " Getting Info..." | ||
echo | ||
gettag | ||
|
||
echo | ||
echo Thanks for use LanGong-LanFilePackage. | ||
echo | ||
echo ---------- | ||
echo | ||
echo "Name: LanFilePackage" | ||
echo "Version: $tag" | ||
echo "Full: LanFilePackage@$tag" | ||
echo "Author: LanGongDEV" | ||
echo "Branch: $mas" | ||
echo "License: MIT-License" | ||
echo "GitRepo: github.com:langong-dev/LanFilePackage.git" | ||
echo "GitSSH: git@github.com:langong-dev/LanFilePackage.git" | ||
echo | ||
echo ---------- | ||
echo | ||
echo "Made by LanGong 2020" | ||
echo "Copyright (c) 2020 LanGong" | ||
echo |