[XMonad] Fix up build script

This commit is contained in:
Ivan Malison 2016-11-30 15:55:22 -08:00
parent c5c0b8ad70
commit ffc19bac6b
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1,9 +1,9 @@
#!/bin/bash
#!/usr/bin/env bash
BIN=$1
[[ -n $BIN ]] || BIN=xmonad
[[ -n "$BIN" ]] || BIN=xmonad
stack install --local-bin-path $PWD
date >> $PWD/last_built
stack install --local-bin-path "$PWD"
date >> "$PWD/last_built"
[[ -f $BIN ]] || ln -s xmonad $BIN
[[ -f "$BIN" ]] || ln -s xmonad "$BIN"