clueless
public text v1 · immutable#!/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