From 6e9c4de132b7da0ba92c9b1efa25acd3b2730b26 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 13 Aug 2019 20:09:46 +0200 Subject: [PATCH] xbps-triggers: update to 0.113. fix bug in register shell: match for whole line instead of substring. --- srcpkgs/xbps-triggers/files/register-shell | 4 ++-- srcpkgs/xbps-triggers/template | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/xbps-triggers/files/register-shell b/srcpkgs/xbps-triggers/files/register-shell index 81390fca148..316d1122ecc 100755 --- a/srcpkgs/xbps-triggers/files/register-shell +++ b/srcpkgs/xbps-triggers/files/register-shell @@ -36,8 +36,8 @@ run) chmod 644 etc/shells else for f in ${register_shell}; do - if ! grep -q $f etc/shells; then - echo $f >> etc/shells + if ! grep -qFx "$f" etc/shells; then + echo "$f" >> etc/shells echo -n "Registered $f into " echo "/etc/shells." fi diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 564bee9fa64..b3cf9b6ce95 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,6 +1,6 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.112 +version=0.113 revision=1 archs=noarch bootstrap=yes