#!/bin/sh set -e # INFO: # The notAptable script can now be found at: link="http://git.debian.org/?p=users/atomo64-guest/misc-devscripts.git;a=blob_plain;f=listNotAptable-ng;hb=master" # This script will download the latest version of the script, replace this file, # and run the notAptable script with the args you passed when executing this script for bin in wget mktemp bash; do [ -x "$(which $bin)" ] || { echo "$bin not found in \$PATH! press enter" >&2; read foo; pager "$0"; exit 1; } done tmp="$(mktemp)" wget "-O$tmp" "$link" mv "$tmp" "$0" # exec won't work here: bash "$0" $@