added -f to the copy commands
This commit is contained in:
parent
6080a28878
commit
6c3acbb3fc
@ -25,7 +25,7 @@ for homedir in /root /home/*; do
|
|||||||
mkdir -p "$homedir/.config/fish"
|
mkdir -p "$homedir/.config/fish"
|
||||||
|
|
||||||
# Copy starship.toml to the user's .config directory
|
# 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
|
# Set ownership to the user of the home directory
|
||||||
chown $(basename "$homedir"):"$(id -gn $(basename "$homedir"))" "$homedir/.config/fish/config.fish"
|
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"
|
mkdir -p "$homedir/.config"
|
||||||
|
|
||||||
# Copy starship.toml to the user's .config directory
|
# 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
|
# Set ownership to the user of the home directory
|
||||||
chown $(basename "$homedir"):"$(id -gn $(basename "$homedir"))" "$homedir/.config/starship.toml"
|
chown $(basename "$homedir"):"$(id -gn $(basename "$homedir"))" "$homedir/.config/starship.toml"
|
||||||
|
Loading…
Reference in New Issue
Block a user