FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Example/deploy at master · Happening/Example · GitHub
Happening
/
Example
Public
Notifications
You must be signed in to change notification settings
Fork
8
Star
9
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Example
/
deploy
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
28 lines (21 loc) · 631 Bytes
Breadcrumbs
Example
/
deploy
Copy path
File metadata and controls
executable file
·
28 lines (21 loc) · 631 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!
/bin/sh
if
!
(hash tar curl
||
hash
tar wget)
2>
/dev/null
;
then
echo
"
This script requires 'tar' and either 'curl' or 'wget' on your system.
"
>&2
exit
1
fi
url=
"
https://happening.im/plugin/
${1-$(cat .deploykey 2>
/
dev
/
null)}
"
if
[
$?
-ne
0 ]
;
then
echo
"
Either supply a deploy key as first argument or populate .deploykey
"
exit
1
fi
cd
"
`
dirname
$0
`
"
tmp=.upload.tar.gz
rm -f
$tmp
tar --create --gzip --file
$tmp
--exclude-from .deployignore
*
#
.* is not included
if
hash
curl
2>
/dev/null
;
then
curl --data-binary @
$tmp
$url
else
wget --content-on-error --post-file=
$tmp
$url
--output-document=- --quiet
fi
rm
$tmp
Back
|
FazBrowse Home
|
New Git URL