Update scripts

This commit is contained in:
Santiago Lo Coco 2021-12-22 00:42:17 -03:00
parent 2e3d6e8c5c
commit da454bfd12
3 changed files with 15 additions and 7 deletions

View File

@ -23,11 +23,18 @@ getGitconfigData() {
} }
startRice() { startRice() {
lastFolder=$(pwd -P)
cocoRiceFolder=$(echo "$(pwd -P)" | awk '{ sub(/CocoRice.*/, "CocoRice"); print }')
cd $cocoRiceFolder
dialog --title "CocoRice" --msgbox "Hi! This script will auto install my dotfiles. Make sure to backup your dotfiles!" 10 60 dialog --title "CocoRice" --msgbox "Hi! This script will auto install my dotfiles. Make sure to backup your dotfiles!" 10 60
getGitconfigData getGitconfigData
./scripts/linkFiles.sh ./scripts/linkFiles.sh
./scripts/install.sh ./scripts/install.sh
dialog --title "CocoRice" --msgbox "All done! Enjoy..." 10 60
clear clear
cd $lastFolder
} }
startRice startRice

View File

@ -7,19 +7,19 @@ cd $DOTFILES_CONFIG
downloaded=false downloaded=false
if [[ ! -d "dwmblocks" ]]; then if [[ ! -d "dwmblocks" ]]; then
git clone https://github.com/santilococo/dwmblocks.git git clone --progress https://github.com/santilococo/dwmblocks.git 2>&1 | dialog --progressbox "Downloading dwmblocks" 10 60
downloaded=true downloaded=true
fi fi
if [[ ! -d "dwm" ]]; then if [[ ! -d "dwm" ]]; then
git clone https://github.com/santilococo/dwm.git git clone --progress https://github.com/santilococo/dwm.git 2>&1 | dialog --progressbox "Downloading dwm" 10 60
downloaded=true downloaded=true
fi fi
if [[ ! -d "st" ]]; then if [[ ! -d "st" ]]; then
git clone https://github.com/santilococo/st.git git clone --progress https://github.com/santilococo/st.git 2>&1 | dialog --progressbox "Downloading st" 10 60
downloaded=true downloaded=true
fi fi
if [[ ! -d "dmenu" ]]; then if [[ ! -d "dmenu" ]]; then
git clone https://github.com/santilococo/dmenu.git git clone --progress https://github.com/santilococo/dmenu.git 2>&1 | dialog --progressbox "Downloading dmenu" 10 60
downloaded=true downloaded=true
fi fi

View File

@ -44,9 +44,10 @@ linkFile() {
} }
loopThroughFiles() { loopThroughFiles() {
lastFolder=$(pwd -P) # lastFolder=$(pwd -P)
DOTFILES=$(echo "$(pwd -P)" | awk '{ sub(/CocoRice.*/, "CocoRice"); print }') # DOTFILES=$(echo "$(pwd -P)" | awk '{ sub(/CocoRice.*/, "CocoRice"); print }')
DOTFILES=$(pwd -P)
cd $DOTFILES cd $DOTFILES
DOTFILES_HOME=$DOTFILES/dotfiles DOTFILES_HOME=$DOTFILES/dotfiles
@ -82,7 +83,7 @@ loopThroughFiles() {
done done
done done
cd $lastFolder # cd $lastFolder
} }
loopThroughFiles loopThroughFiles