Merge branch 'master' of AstroGit:utils
This commit is contained in:
commit
2b2d09e2ae
@ -4,7 +4,6 @@ if ! $IS_CYGWIN; then
|
||||
return
|
||||
fi
|
||||
|
||||
echo $PATH | grep -q MSBuild
|
||||
if [ -n "$FrameworkVersion" ]; then
|
||||
alias vsshell='echo "FrameworkVersion $FrameworkVersion"'
|
||||
return
|
||||
|
13
bash/cygwin/bin/cyg-import-key
Executable file
13
bash/cygwin/bin/cyg-import-key
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
PUBKEY_URL="https://cygwin.com/key/pubring.asc"
|
||||
|
||||
TMP=$( mktemp )
|
||||
|
||||
function __o { rm $TMP; }
|
||||
trap __o EXIT
|
||||
|
||||
|
||||
curl "$PUBKEY_URL" > $TMP
|
||||
|
||||
gpg2 --import $TMP
|
2
bash/cygwin/bin/cyg-update
Executable file
2
bash/cygwin/bin/cyg-update
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
/opt/setup-x86_64.exe -qg
|
27
bash/cygwin/bin/cyg-update-installer
Executable file
27
bash/cygwin/bin/cyg-update-installer
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
SETUP_BIN="/opt/setup-x86_64.exe"
|
||||
|
||||
SIG_URL="https://cygwin.com/setup-x86_64.exe.sig"
|
||||
SETUP_URL="https://cygwin.com/setup-x86_64.exe"
|
||||
|
||||
TMP_BIN=$( mktemp )
|
||||
TMP_SIG=$( mktemp )
|
||||
|
||||
function __o { rm $TMP_BIN; rm $TMP_SIG; }
|
||||
trap __o EXIT
|
||||
|
||||
echo "Downloading Signature ..."
|
||||
curl -s "$SIG_URL" > $TMP_SIG
|
||||
echo "Downloading setup binary ..."
|
||||
curl -s "$SETUP_URL" > $TMP_BIN
|
||||
|
||||
echo "Verifying Signature ..."
|
||||
gpg2 -q --verify $TMP_SIG $TMP_BIN
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: Bad Signature!"
|
||||
else
|
||||
echo "Installing setup"
|
||||
cp $TMP_BIN $SETUP_BIN
|
||||
chmod +x $SETUP_BIN
|
||||
fi
|
Loading…
Reference in New Issue
Block a user