From bb24fe57ee4a8cd453b0237b52dcbbe78f56820a Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 14 Aug 2021 20:44:23 +0300 Subject: [PATCH] fixup! Improve rclone handling. --- .bashrc | 4 ---- Makefile | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index 2b93652..9a77094 100644 --- a/.bashrc +++ b/.bashrc @@ -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")" diff --git a/Makefile b/Makefile index ec2c278..cf903fb 100644 --- a/Makefile +++ b/Makefile @@ -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) -- GitLab