summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/cfg
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-10-23 19:26:10 -0700
committerxyz <gky44px1999@gmail.com>2021-10-23 19:26:10 -0700
commitbb5bae6362f044860832d8cc8bad9e0bc7ce0ca7 (patch)
tree2efe5d67607a9e5cf331fa47d12ae0c6a37f6ca3 /home/xyz/.local/bin/cfg
parentb4c6a575ab38d15dec21dc3954e691261d736655 (diff)
refactor
Diffstat (limited to 'home/xyz/.local/bin/cfg')
-rwxr-xr-xhome/xyz/.local/bin/cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/cfg b/home/xyz/.local/bin/cfg
index c955175d..56ba6d71 100755
--- a/home/xyz/.local/bin/cfg
+++ b/home/xyz/.local/bin/cfg
@@ -6,7 +6,7 @@ while getopts clsmM opt; do
cmd="git --git-dir=$HOME/.cfg$opt/ --work-tree=$HOME"
meta_file="$XDG_CONFIG_HOME/myconf/cfg${opt}_meta";;
l|s) work_tree_dir=/
- cmd="sudo GPG_TTY=$(tty) git --git-dir=/etc/.cfg$opt/ --work-tree=/"
+ cmd="sudo git --git-dir=/etc/.cfg$opt/ --work-tree=/"
meta_file="/etc/myconf/cfg${opt}_meta";;
m) sudo gitmetap "$cmd" "$work_tree_dir" "$meta_file"
exit;;