Skip to content

Commit

Permalink
optimized code
Browse files Browse the repository at this point in the history
  • Loading branch information
cmames committed Jan 25, 2021
1 parent 8e37159 commit 4b2bdd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zramit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ _install() {
set +e
grep "_zram" /etc/default/zramit.conf > oldconf
grep "_zram" service/zramit.config > newconf
configdiff=$(diff -u --suppress-common-line oldconf newconf | grep "^[-+]" | sed -e 's/oldconf.*/installed config/g' -e 's/newconf.*/package config/g' -e 's/^-\([^-]\)/--- \1/g' -e 's/^+\([^+]\)/+++ \1/g')
configdiff=$(diff -u --suppress-common-line oldconf newconf | grep "^[-+]" | sed -e 's/oldconf.*/installed config/g' -e 's/newconf.*/package config/g')
rm oldconf
rm newconf
set -e
Expand Down

0 comments on commit 4b2bdd2

Please sign in to comment.