#!/usr/bin/env bash move-back() { mv -v .stack-work .stack-work-test [[ -d .stack-work-build ]] && mv -v .stack-work-build .stack-work } if [[ -d .stack-work-test ]]; then [[ -d .stack-work ]] && mv -v .stack-work .stack-work-build mv -v .stack-work-test .stack-work trap move-back EXIT fi stack build --test --fast --flag uniworx:dev --flag uniworx:library-only ${@}