Skip to content

Commit 4e12f63

Browse files
Merge pull request #54 from ninelore/overwrite
install.sh: overwrite old files
2 parents d735689 + 919d76f commit 4e12f63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ echo "Generating config"
100100
# Handle any special cases
101101
if (grep -E "^(Nocturne|Atlas|Eve)$" /sys/class/dmi/id/product_name &> /dev/null)
102102
then
103-
cp configs/cros-pixel.conf cros.conf
103+
cp -f configs/cros-pixel.conf cros.conf
104104
$privesc mkdir -p /etc/udev/hwdb.d/
105-
$privesc cp configs/61-pixel-keyboard.hwdb /etc/udev/hwdb.d/
105+
$privesc cp -f configs/61-pixel-keyboard.hwdb /etc/udev/hwdb.d/
106106
$privesc udevadm hwdb --update
107107
$privesc udevadm trigger
108108
elif (grep -E "^(Sarien|Arcada)$" /sys/class/dmi/id/product_name &> /dev/null)
109109
then
110-
cp configs/cros-sarien.conf cros.conf
110+
cp -f configs/cros-sarien.conf cros.conf
111111
else
112112
printf "By default, the top row keys will do their special function (brightness, volume, browser control, etc).\n"
113113
printf "Holding the search key will make the top row keys act like fn keys (f1, f2, f3, etc).\n"
@@ -123,7 +123,7 @@ fi
123123

124124
echo "Installing config"
125125
$privesc mkdir -p /etc/keyd
126-
$privesc cp cros.conf /etc/keyd
126+
$privesc cp -f cros.conf /etc/keyd
127127

128128
echo "Enabling keyd"
129129
case $distro in
@@ -159,7 +159,7 @@ $privesc mkdir -p /etc/libinput
159159
if [ -f /etc/libinput/local-overrides.quirks ]; then
160160
cat $ROOT/local-overrides.quirks | $privesc tee -a /etc/libinput/local-overrides.quirks > /dev/null
161161
else
162-
$privesc cp $ROOT/local-overrides.quirks /etc/libinput/local-overrides.quirks
162+
$privesc cp -f $ROOT/local-overrides.quirks /etc/libinput/local-overrides.quirks
163163
fi
164164

165165
echo "Done"

0 commit comments

Comments
 (0)