From f125732f92a9ba39a2fec0afb1c4a677cb9a49f5 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Sun, 26 May 2024 19:41:21 -0500 Subject: xsync: Use doas --- local/bin/xsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'local/bin/xsync') diff --git a/local/bin/xsync b/local/bin/xsync index c6108ae..e8c0578 100755 --- a/local/bin/xsync +++ b/local/bin/xsync @@ -21,8 +21,8 @@ comm /tmp/xsync-spec /tmp/xsync-installed -23 > /tmp/xsync-to-install comm /tmp/xsync-spec /tmp/xsync-installed -13 > /tmp/xsync-to-remove # You can add the -n flag to dry-run and see what will happen -[ -s /tmp/xsync-to-remove ] && sudo xbps-remove $(cat /tmp/xsync-to-remove) || echo "Nothing to remove" +[ -s /tmp/xsync-to-remove ] && doas xbps-remove $(cat /tmp/xsync-to-remove) || echo "Nothing to remove" # You can add the -n flag to dry-run and see what will happen -[ -s /tmp/xsync-to-install ] && sudo xbps-install -S $(cat /tmp/xsync-to-install) || echo "Nothing to install" +[ -s /tmp/xsync-to-install ] && doas xbps-install -S $(cat /tmp/xsync-to-install) || echo "Nothing to install" -- cgit v1.2.3