summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-03-18 01:28:11 -0700
committerxyz <gky44px1999@gmail.com>2022-03-18 01:28:11 -0700
commitbc826c89bac71b357be10017e2882252f23ef79e (patch)
tree8ce9b38da1d55e15df633447be403bcb5394767b /home
parent5a7622d38978b75db4af112c4113d571cb9017b7 (diff)
cfg use sudo -E
Diffstat (limited to 'home')
-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 82e7ca94..3f7ec29d 100755
--- a/home/xyz/.local/bin/cfg
+++ b/home/xyz/.local/bin/cfg
@@ -10,7 +10,7 @@ while getopts lsmM opt; do
l|s)
work_tree_dir=/
meta_file="/etc/myconf/cfg${opt}_meta"
- cmd="sudo git --git-dir=/etc/.cfg$opt/ --work-tree=/"
+ cmd="sudo -E git --git-dir=/etc/.cfg$opt/ --work-tree=/"
;;
m)
sudo gitmetap "$cmd" "$work_tree_dir" "$meta_file"