Dotfiles/rice-bowl/scripts/install.sh
2023-02-03 19:12:16 +01:00

18 lines
507 B
Bash
Executable file

#!/bin/bash
SH_DIR_INSTALL=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $SH_DIR_INSTALL/../config.sh
# If Config Folder Exists rename it first
sudo mv $RICE_DIR_CONFIG ${RICE_DIR_CONFIG}_old
# Create Config Folder
mkdir $RICE_DIR_CONFIG
# Move Whole Repo Folder to Rice Location
sudo mv $SH_DIR_INSTALL/../../* -t=$RICE_DIR_CONFIG
# Move All Hiden Files
sudo mv $SH_DIR_INSTALL/../../.* -t=$RICE_DIR_CONFIG
# Install Resources
source $SH_DIR_INSTALL/install_resources.sh