Update
This commit is contained in:
15
vargtools
15
vargtools
@@ -20,9 +20,13 @@ fi
|
|||||||
user_home=$(echo $HOME)
|
user_home=$(echo $HOME)
|
||||||
app_version=24110122
|
app_version=24110122
|
||||||
init_version=0
|
init_version=0
|
||||||
|
tcmeta_key=0
|
||||||
base_repo=https://git.tcmeta.net/kurtis
|
base_repo=https://git.tcmeta.net/kurtis
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
if [ -f $user_home/.config/vargtools/tcmeta ]; then
|
||||||
|
tcmeta_key=$(<$user_home/.config/vargtools/tcmeta)
|
||||||
|
fi
|
||||||
if [ -f /etc/vargtools/init ]; then
|
if [ -f /etc/vargtools/init ]; then
|
||||||
init_version=$(</etc/vargtools/init)
|
init_version=$(</etc/vargtools/init)
|
||||||
else
|
else
|
||||||
@@ -111,10 +115,12 @@ vMenuSystem() {
|
|||||||
menuActions+=(configBrave)
|
menuActions+=(configBrave)
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$user_home/.config/vargtools/tcmeta" ]; then
|
if [ ! -d "$user_home/.config/vargtools/tcmeta" ]; then
|
||||||
|
if [ ! -d "$user_home/.dotfiles" ]; then
|
||||||
menuNumberIndex=$((menuNumberIndex+1))
|
menuNumberIndex=$((menuNumberIndex+1))
|
||||||
menuItems+=("$menuNumberIndex. Setup dotfiles ")
|
menuItems+=("$menuNumberIndex. Setup dotfiles ")
|
||||||
menuActions+=(setupDotFiles)
|
menuActions+=(setupDotFiles)
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
menuItems+=("B. Back ")
|
menuItems+=("B. Back ")
|
||||||
menuActions+=(vMenuMain)
|
menuActions+=(vMenuMain)
|
||||||
menuTitle=" VargTools"
|
menuTitle=" VargTools"
|
||||||
@@ -209,13 +215,16 @@ setTcmetaKey() {
|
|||||||
logo
|
logo
|
||||||
echo [TCMeta] please enter the git key
|
echo [TCMeta] please enter the git key
|
||||||
read -r key
|
read -r key
|
||||||
echo $key > $user_home/.config/vargtools/tcmeta
|
echo $key | tee $user_home/.config/vargtools/tcmeta > /dev/null
|
||||||
|
tcmeta_key=$(<$user_home/.config/vargtools/tcmeta)
|
||||||
echo [TCMeta] Key Applied
|
echo [TCMeta] Key Applied
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
setupDotFiles() {
|
installDotFiles() {
|
||||||
|
git clone "https://$tcmeta_key@git.tcmeta.net/kurtis/dotfiles.git" $user_home/.dotfiles
|
||||||
|
echo "alias dotfiles-update='$user_home/.dotfiles/update-repo'" | tee -a $user_home/.bash_aliases > /dev/null
|
||||||
|
echo "alias dotfiles-push='$user_home/.dotfiles/push-repo'" | tee -a $user_home/.bash_aliases > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
installChicago95() {
|
installChicago95() {
|
||||||
|
|||||||
Reference in New Issue
Block a user