Skip to content
Snippets Groups Projects
Commit bb24fe57 authored by nimrod's avatar nimrod
Browse files

fixup! Improve rclone handling.

parent 6fbc195e
No related branches found
No related tags found
No related merge requests found
......@@ -231,10 +231,6 @@ prune_ssh_sockets () {
-execdir sh -c 'lsof -t "$1" >/dev/null || rm "$1"' _ {} \;
}
rcnc () {
RCLONE_CONFIG_NEXTCLOUD_PASS="$(rclone obscure "$(ph show --field 'Password' 'shore.co.il/LDAP')")" rclone "$@"
}
set_title () {
local default_title
default_title="$(basename "$PWD")"
......
......@@ -35,6 +35,7 @@ all: .bashrc.private
echo 'export GITLAB_PRIVATE_TOKEN="$$GITLAB_TOKEN"' >> '$@'
echo "export GITLAB_REGISTRATION_TOKEN='$$(ph show --field Password 'shore.co.il/GitLab runner registration token')'" >> '$@'
echo "export GITHUB_TOKEN='$$(ph show --field 'CLI token' 'Web Sites/GitHub')'" >> '$@'
printf "export RCLONE_CONFIG_NEXTCLOUD_PASS='%s'\n" "$$(rclone obscure "$$(ph show --field 'Password' 'shore.co.il/LDAP')")" >> '$@'
all: .ssh/config
.ssh/config: $(ssh_configs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment