Browse Source

Fix running languages.test on sh/bash.

master
Reece H. Dunn 7 years ago
parent
commit
d19da58fa0
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tests/languages.test

+ 2
- 2
tests/languages.test View File



# Test a command for presence and ability to output the sha1 hash of a file. # Test a command for presence and ability to output the sha1 hash of a file.
check_hashcmd() { check_hashcmd() {
which $1 >&/dev/null &&
which $1 &>/dev/null &&
$1 </dev/null 2>/dev/null | $1 </dev/null 2>/dev/null |
awk '{if ($1 != "da39a3ee5e6b4b0d3255bfef95601890afd80709") { exit 1; }}' awk '{if ($1 != "da39a3ee5e6b4b0d3255bfef95601890afd80709") { exit 1; }}'
} }
sha1sum=shasum sha1sum=shasum
else else
echo "No hashing commands found." echo "No hashing commands found."
false
exit 1
fi fi


test_lang() { test_lang() {

Loading…
Cancel
Save