Signed-off-by: Christina Sørensen <christina@cafkafk.com>
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This script creates a bunch of awkward test case files. It gets
# automatically run as part of Vagrant provisioning.
trap 'exit' ERR
# This file contains the text fixtures — the known, constant data — that are
# used when setting up the environment that exa’s tests get run in.
if [[ -f ~/target/debug/exa ]]; then
~/target/debug/exa "$@"
else
if [[ -f ~/target/release/exa ]]; then
~/target/release/exa "$@"
if [[ ! -d "/vagrant" ]]; then
echo "This script should be run in the Vagrant environment"
# Check for release mode