Commit bb24fe57 authored by nimrod's avatar nimrod
Browse files

fixup! Improve rclone handling.

parent 6fbc195e
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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")"
+1 −0
Original line number Diff line number Diff line
@@ -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)