@@ -100,14 +100,14 @@ echo "Generating config"
100100# Handle any special cases
101101if (grep -E " ^(Nocturne|Atlas|Eve)$" /sys/class/dmi/id/product_name & > /dev/null)
102102then
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
108108elif (grep -E " ^(Sarien|Arcada)$" /sys/class/dmi/id/product_name & > /dev/null)
109109then
110- cp configs/cros-sarien.conf cros.conf
110+ cp -f configs/cros-sarien.conf cros.conf
111111else
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"
123123
124124echo " Installing config"
125125$privesc mkdir -p /etc/keyd
126- $privesc cp cros.conf /etc/keyd
126+ $privesc cp -f cros.conf /etc/keyd
127127
128128echo " Enabling keyd"
129129case $distro in
@@ -159,7 +159,7 @@ $privesc mkdir -p /etc/libinput
159159if [ -f /etc/libinput/local-overrides.quirks ]; then
160160 cat $ROOT /local-overrides.quirks | $privesc tee -a /etc/libinput/local-overrides.quirks > /dev/null
161161else
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
163163fi
164164
165165echo " Done"
0 commit comments