systemd / zram-generator

Systemd unit generator for zram devices
MIT License
575 stars 48 forks source link

CI: optimize removal of older rust binaries #180

Closed pheiduck closed 1 year ago

pheiduck commented 1 year ago

one rm -rf ... line instead of 2 or more later. Before:

rm -f ~/.cargo/bin/*fmt ~/.cargo/bin/rust-analyzer

After:

rm -f ~/.cargo/bin/{*fmt,rust-analyzer}
nabijaczleweli commented 1 year ago

The actual change is

-rm -f ~/.cargo/bin/*fmt ~/.cargo/bin/rust-analyzer
+rm -f ~/.cargo/bin/{*fmt,rust-analyzer}

which is (a) the same line and process count (=> what's the optimisation here?) and (b) adds a kshism to (c) generate the same words for (d) no reason at all?