mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Imported usable scripts from the private temporary repository
This commit is contained in:
16
scripts/keybase/clone-lfs-enabled-repo.bash
Executable file
16
scripts/keybase/clone-lfs-enabled-repo.bash
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
[[ $DEBUG ]] && set -x
|
||||
|
||||
: ${REPO_URL:?not set}
|
||||
DESTINATION_DIR="${DESTINATION_DIR:-$PWD}"
|
||||
|
||||
git clone --no-checkout \
|
||||
"${REPO_URL}" \
|
||||
"${DESTINATION_DIR}/${REPO_URL##*/}"
|
||||
cd "${DESTINATION_DIR}/${REPO_URL##*/}"
|
||||
keybase git lfs-config
|
||||
git checkout --force HEAD
|
||||
cd -
|
||||
|
||||
[[ $DEBUG ]] && set +x
|
||||
13
scripts/keybase/install.sh
Normal file
13
scripts/keybase/install.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env sh
|
||||
# https://keybase.io/docs/the_app/install_linux
|
||||
|
||||
curl https://prerelease.keybase.io/keybase_amd64.deb \
|
||||
--output /tmp/keybase_amd64.deb \
|
||||
--silent
|
||||
LC_ALL='C' sudo apt install --assume-yes /tmp/keybase_amd64.deb
|
||||
rm keybase_amd64.deb
|
||||
|
||||
run_keybase
|
||||
|
||||
# sudo dnf install --assumeyes https://prerelease.keybase.io/keybase_amd64.rpm
|
||||
# sudo yum install --assumeyes https://prerelease.keybase.io/keybase_amd64.rpm
|
||||
11
scripts/keybase/oneshot-list-git-repos.sh
Normal file
11
scripts/keybase/oneshot-list-git-repos.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
export \
|
||||
KEYBASE_USERNAME="${KEYBASE_USERNAME:?not set}" \
|
||||
KEYBASE_PAPERKEY="${KEYBASE_PAPERKEY:?not set}"
|
||||
|
||||
source install.sh
|
||||
|
||||
run_keybase
|
||||
keybase oneshot
|
||||
keybase git list
|
||||
Reference in New Issue
Block a user