diff options
Diffstat (limited to '')
-rwxr-xr-x | local/bin/xsync | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/local/bin/xsync b/local/bin/xsync index a298633..c6108ae 100755 --- a/local/bin/xsync +++ b/local/bin/xsync @@ -8,10 +8,14 @@ # Add whatever package you want to install, and run xsync to sync your # list of packages with the new list -set -e +usr=$(whoami) +if [ $usr = "root" ] + then echo "Xsync run as root; please do not run privileged" + exit 1 +fi xpkg -m | sort > /tmp/xsync-installed -cat ~/repository.list | sort > /tmp/xsync-spec +cat $HOME/repository.list | sort > /tmp/xsync-spec comm /tmp/xsync-spec /tmp/xsync-installed -23 > /tmp/xsync-to-install comm /tmp/xsync-spec /tmp/xsync-installed -13 > /tmp/xsync-to-remove |