Added cyg-update scripts

This commit is contained in:
2017-09-20 13:23:07 +08:00
parent ee352550ae
commit ac387aec26
3 changed files with 42 additions and 0 deletions

13
bash/cygwin/bin/cyg-import-key Executable file
View 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