From 236d2d857881d4d50da92eb4ed6d4721474806dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Fri, 17 Nov 2017 10:08:25 +0100 Subject: [PATCH] afm-util: don't reload if afm-install MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I5c73d80ee2dd02a8d7260e8dcd5f52e8ef84b34b Signed-off-by: José Bollo --- scripts/afm-util | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/afm-util b/scripts/afm-util index 4d86218..c5e48eb 100755 --- a/scripts/afm-util +++ b/scripts/afm-util @@ -13,7 +13,9 @@ case "$1" in add|install) f=$(realpath $2) - send install '{"wgt":"'"$f"'","force":true}' + r=true + if [[ "$(basename $0)" = "afm-install" ]]; then r=false; fi + send install '{"wgt":"'"$f"'","force":true,"reload":'"$r"'}' ;; remove|uninstall) -- 2.16.6