Update
This commit is contained in:
21
vargtools
21
vargtools
@@ -20,9 +20,13 @@ fi
|
||||
user_home=$(echo $HOME)
|
||||
app_version=24110122
|
||||
init_version=0
|
||||
tcmeta_key=0
|
||||
base_repo=https://git.tcmeta.net/kurtis
|
||||
|
||||
start() {
|
||||
if [ -f $user_home/.config/vargtools/tcmeta ]; then
|
||||
tcmeta_key=$(<$user_home/.config/vargtools/tcmeta)
|
||||
fi
|
||||
if [ -f /etc/vargtools/init ]; then
|
||||
init_version=$(</etc/vargtools/init)
|
||||
else
|
||||
@@ -111,9 +115,11 @@ vMenuSystem() {
|
||||
menuActions+=(configBrave)
|
||||
fi
|
||||
if [ ! -d "$user_home/.config/vargtools/tcmeta" ]; then
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
menuItems+=("$menuNumberIndex. Setup dotfiles ")
|
||||
menuActions+=(setupDotFiles)
|
||||
if [ ! -d "$user_home/.dotfiles" ]; then
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
menuItems+=("$menuNumberIndex. Setup dotfiles ")
|
||||
menuActions+=(setupDotFiles)
|
||||
fi
|
||||
fi
|
||||
menuItems+=("B. Back ")
|
||||
menuActions+=(vMenuMain)
|
||||
@@ -209,13 +215,16 @@ setTcmetaKey() {
|
||||
logo
|
||||
echo [TCMeta] please enter the git 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
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user