Dotfiles/rice-bowl/scripts/install.sh

19 lines
507 B
Bash
Raw Permalink Normal View History

2023-02-03 18:12:16 +00:00
#!/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