on master help sign in
clean-old-stack-libs.sh: pushd to show dir and run stack script
ca686baJens Petersen
etc/diskspace/clean-old-stack-libs.shmode 100644 → 100755+6−2
@@ -1,10 +1,14 @@
1#!/bin/sh
1#!/bin/sh
2
2
3+set -e
4+
3if [ $# != 1 ]; then
5if [ $# != 1 ]; then
4 echo "Usage: $0 [nightly|lts-xx]"
6 echo "Usage: $0 [nightly|lts-xx]"
5 exit 1
7 exit 1
6fi
8fi
7
9
10+SRCDIR=$(dirname $0)
11+
8−popd ~/stackage/automated/work/$1/unpack-dir/.stack-work/install/x86_64-linux/*/*/lib/x86_64-linux-ghc-*
12+pushd ~/stackage/automated/work/$1/unpack-dir/.stack-work/install/x86_64-linux/*/*/lib/x86_64-linux-ghc-*
9
13
10−~/stackage/etc/diskspace/remove-old-stack-work-libs.hs
14+stack --resolver lts-14 script ${SRCDIR}/remove-old-stack-work-libs.hs
etc/diskspace/remove-old-stack-work-libs.hsmode 100755 → 100644

Only the mode changed.