This file contains hidden or 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
#!/bin/bash | |
if [ "$1" = "" ] || [ "$2" != "" ]; then | |
echo "usage: phplink [version]" | |
exit | |
fi | |
if [ $(stat -f '%Su' /usr/local/bin/) != "$USER" ]; then | |
sudo chown $USER /usr/local/bin /usr/local/etc /usr/local/share/man /usr/local/share/man/* /usr/local/sbin /usr/local/share/doc | |
fi |
This file contains hidden or 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
const { Octokit, App } = require("octokit"); | |
async function run() { | |
const github = new Octokit(); | |
// fetch tree head and look for /discoveries folder's tree SHA | |
const { | |
data: tree | |
} = await github.rest.git.getTree({ | |
owner: "googleapis", | |
repo: "discovery-artifact-manager", |