all repos — shredmaster @ main

script for wiping a bunch of drives at once

install (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh

dist="shredmaster.sh shredder.sh"

if [ -z ${1} ]; then
  echo "usage: ./install TARGET -- installs programs to ~/bin/TARGET/"
  exit
fi

if [ ! -d ~/bin/ ]; then
  mkdir ~/bin/
  echo "creating ~/bin/"
fi

if [ ! -d ~/bin/${1}/ ]; then
  mkdir ~/bin/${1}/
  echo "creating ~/bin/${1}/"
fi


for i in ${dist}; do
  cp ./${i} ~/bin/${1}
  echo "copying ${i} to ~/bin/${1}/"
  chmod +x ~/bin/${1}/${i}
done