Update
Changed tcmeta key storage to local user instead of system
This commit is contained in:
13
vargtools
13
vargtools
@@ -75,7 +75,7 @@ vMenuSettings() {
|
||||
menuItems=("$menuNumberIndex. Update vargtools")
|
||||
menuActions=(updateVargtools)
|
||||
# Check if git key has been given
|
||||
if ! [ -f /etc/vargtools/tcmeta ]; then
|
||||
if ! [ -f $user_home/.config/vargtools/tcmeta ]; then
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
menuItems+=("$menuNumberIndex. Set TCMeta Key")
|
||||
menuActions+=(setTcmetaKey)
|
||||
@@ -110,6 +110,11 @@ vMenuSystem() {
|
||||
menuItems+=("$menuNumberIndex. Update / Install Brave Policy ")
|
||||
menuActions+=(configBrave)
|
||||
fi
|
||||
if [ ! -d "$user_home/.config/vargtools/tcmeta" ]; then
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
menuItems+=("$menuNumberIndex. Setup dotfiles ")
|
||||
menuActions+=(setupDotFiles)
|
||||
fi
|
||||
menuItems+=("B. Back ")
|
||||
menuActions+=(vMenuMain)
|
||||
menuTitle=" VargTools"
|
||||
@@ -204,11 +209,15 @@ setTcmetaKey() {
|
||||
logo
|
||||
echo [TCMeta] please enter the git key
|
||||
read -r key
|
||||
sudo echo $key > /etc/vargtools/tcmeta
|
||||
echo $key > $user_home/.config/vargtools/tcmeta
|
||||
echo [TCMeta] Key Applied
|
||||
return 1
|
||||
}
|
||||
|
||||
setupDotFiles() {
|
||||
|
||||
}
|
||||
|
||||
installChicago95() {
|
||||
logo
|
||||
echo [Chicago95] Installing prereqs
|
||||
|
||||
Reference in New Issue
Block a user