added -f to the copy commands

This commit is contained in:
zebra 2024-07-24 15:31:18 -07:00
parent 6080a28878
commit 6c3acbb3fc

View File

@ -25,7 +25,7 @@ for homedir in /root /home/*; do
mkdir -p "$homedir/.config/fish"
# Copy starship.toml to the user's .config directory
cp "$HOME/.config/fish/config.fish" "$homedir/.config/fish/config.fish"
cp -f "$HOME/.config/fish/config.fish" "$homedir/.config/fish/config.fish"
# Set ownership to the user of the home directory
chown $(basename "$homedir"):"$(id -gn $(basename "$homedir"))" "$homedir/.config/fish/config.fish"
@ -52,7 +52,7 @@ for homedir in /root /home/*; do
mkdir -p "$homedir/.config"
# Copy starship.toml to the user's .config directory
cp "$HOME/.config/starship.toml" "$homedir/.config/starship.toml"
cp -f "$HOME/.config/starship.toml" "$homedir/.config/starship.toml"
# Set ownership to the user of the home directory
chown $(basename "$homedir"):"$(id -gn $(basename "$homedir"))" "$homedir/.config/starship.toml"