arch workstation commit
This commit is contained in:
@@ -160,14 +160,20 @@ fi
|
||||
SOURCE_DIR="$SCRIPT_DIR/config-files/arch"
|
||||
DEST_DIR="$HOME"
|
||||
|
||||
# replace bashrc
|
||||
say_yellow "Setting bashrc"
|
||||
sudo cp -v /etc/skel/.bashrc /etc/skel/.bashrc.starburst
|
||||
sudo cp -rf $SOURCE_DIR/.bashrc /etc/skel/.bashrc
|
||||
sudo cp -rf $SOURCE_DIR/.bashrc $HOME/.bashrc
|
||||
|
||||
# 1. Verify source directory exists
|
||||
if [ ! -d "$SOURCE_DIR" ]; then
|
||||
echo "Error: Source directory '$SOURCE_DIR' not found. Skipping XFCE config."
|
||||
echo "Error: Source directory '$SOURCE_DIR' not found. Skipping config."
|
||||
# Use exit 1 if this is critical, or just exit 0 to continue the main script
|
||||
# exit 1
|
||||
fi
|
||||
|
||||
say_yellow "Applying XFCE configuration directly to $DEST_DIR..."
|
||||
say_yellow "Applying configuration directly to $DEST_DIR..."
|
||||
|
||||
# 2. Use shopt for dotfiles, then copy recursively and forcefully
|
||||
shopt -s dotglob
|
||||
@@ -178,7 +184,7 @@ shopt -u dotglob
|
||||
say_yellow "Clearing session cache..."
|
||||
rm -rf "$HOME/.cache/sessions/"
|
||||
|
||||
say_yellow "XFCE configuration applied. User can log in now."
|
||||
say_yellow "configuration applied. User can log in now."
|
||||
|
||||
# End of script
|
||||
say_green "Full setup completed."
|
||||
|
||||
Reference in New Issue
Block a user