From 4b2bdd2055c979a2bc14213c4323b5ab5584018d Mon Sep 17 00:00:00 2001 From: cmames Date: Mon, 25 Jan 2021 21:20:44 +0100 Subject: [PATCH] optimized code --- zramit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zramit.sh b/zramit.sh index f3de8f7..36e6216 100755 --- a/zramit.sh +++ b/zramit.sh @@ -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