dotfiles/bin/clean.sh
Benedikt Heine 16aad7f4c5 Adapt shebangs
Convert all shebangs to /usr/bin/env bash, if bash is really required in
the script. Otherwise convert it to /bin/sh.

/bin/bash is not available on all systems, while /usr/bin/env bash and
/bin/sh are.
2018-05-29 00:02:00 +02:00

18 lines
231 B
Bash
Executable file

#!/bin/sh
case "$1" in
all)
$0 docker
$0 pacman
;;
docker)
docker container prune --force
docker image prune --force
;;
pacman)
pacman -Sc
;;
*)
echo "Please give parameter of: [all docker pacman]"
;;
esac