Update scripts
This commit is contained in:
parent
2e3d6e8c5c
commit
da454bfd12
|
@ -23,11 +23,18 @@ getGitconfigData() {
|
|||
}
|
||||
|
||||
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
|
||||
getGitconfigData
|
||||
./scripts/linkFiles.sh
|
||||
./scripts/install.sh
|
||||
dialog --title "CocoRice" --msgbox "All done! Enjoy..." 10 60
|
||||
|
||||
clear
|
||||
cd $lastFolder
|
||||
}
|
||||
|
||||
startRice
|
||||
|
|
|
@ -7,19 +7,19 @@ cd $DOTFILES_CONFIG
|
|||
downloaded=false
|
||||
|
||||
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
|
||||
fi
|
||||
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
|
||||
fi
|
||||
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
|
||||
fi
|
||||
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
|
||||
fi
|
||||
|
||||
|
|
|
@ -44,9 +44,10 @@ linkFile() {
|
|||
}
|
||||
|
||||
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
|
||||
|
||||
DOTFILES_HOME=$DOTFILES/dotfiles
|
||||
|
@ -82,7 +83,7 @@ loopThroughFiles() {
|
|||
done
|
||||
done
|
||||
|
||||
cd $lastFolder
|
||||
# cd $lastFolder
|
||||
}
|
||||
|
||||
loopThroughFiles
|
Loading…
Reference in New Issue