stackage/etc/diskspace/clean-old-stack-libs.sh
Jens Petersen ca686bacd1 clean-old-stack-libs.sh: pushd to show dir and run stack script
- bail if error
- make shell script executable instead
2020-05-19 15:24:13 +08:00

15 lines
293 B
Bash
Executable File

#!/bin/sh
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