stackage/etc/diskspace/clean-old-stack-libs.sh
2020-05-19 15:28:29 +08:00

15 lines
295 B
Bash
Executable File

#!/bin/bash
set -e
if [ $# != 1 ]; then
echo "Usage: $0 [nightly|lts-xx]"
exit 1
fi
SRCDIR=$(dirname $0)
pushd ~/stackage/automated/work/$1/unpack-dir/.stack-work/install/x86_64-linux/*/*/lib/x86_64-linux-ghc-*
stack --resolver lts-14 script ${SRCDIR}/remove-old-stack-work-libs.hs