All pastes #946072 Raw Edit

clueless

public text v1 · immutable
·published 2008-03-17 12:16 UTC
rendered paste body
#!/bin/bash
action=$1
shift

case "$action" in
go)
if [ -e /tmp/debinst ] ; then
rm -r /tmp/debinst;
echo DEBUG: /tmp/debinst removed
fi

apt-get install --reinstall -d $@
mkdir /tmp/debinst
cp -v /var/cache/apt/archives/*.deb /tmp/debinst
echo DEBUG: cding to /tmp/debinst
cd /tmp/debinst
echo DEBUG: in /tmp/debinst
rm -r /tmp/debinst
;;
*)
echo stuff should be here
;;
esac