diff --git a/create-example.sh b/create-example.sh index 8b6d03f..a60155b 100755 --- a/create-example.sh +++ b/create-example.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Note: Use '--inspect' parameter to prevent cleaning up for further inspections. set -u diff --git a/test.sh b/test.sh index 4f15522..f3866e7 100755 --- a/test.sh +++ b/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu RED='\033[0;31m' @@ -29,7 +29,7 @@ info "Creating \"$new\"" #echo "hello" >> $new info "Comparing $ref with $new" -if /usr/bin/diff <(mask $ref) <(mask $new); then +if diff -u <(mask $ref) <(mask $new); then info "Removing $new" rm $new echo -e "${GREEN}PASSED: All tests passed succesfully.${NC}"