diff options
Diffstat (limited to 'local/bin/xsync')
-rwxr-xr-x | local/bin/xsync | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/local/bin/xsync b/local/bin/xsync index 576b733..fa90b24 100755 --- a/local/bin/xsync +++ b/local/bin/xsync @@ -18,7 +18,9 @@ echo $INSTALLED 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-install ] && sudo xbps-install $(cat /tmp/xsync-to-install) || echo "Nothing to install" +# 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" |