source: orange/install-scripts/mac/fink-restore-selections.sh @ 6533:549635cf9518

Revision 6533:549635cf9518, 441 bytes checked in by Mitar <Mitar@…>, 4 years ago (diff)

Added root privileges check.

  • Property exe set to *
Line 
1#!/bin/bash -e
2#
3# Should be run as: sudo ./fink-restore-selections.sh
4#
5
6# Sets error handler
7trap "echo \"Script failed\"" ERR
8
9((`id -u` == 0)) || { echo "Must run as root user (use sudo)."; exit 1; }
10
11dpkg --get-selections '*' | cut -f 1 | xargs -n 1 -J % echo % purge | dpkg --set-selections
12curl http://www.ailab.si/svn/orange/trunk/install-scripts/mac/fink-selections.list | dpkg --set-selections
13apt-get --assume-yes dselect-upgrade
Note: See TracBrowser for help on using the repository browser.