_autoenv_hash_pair: use sha1sum (C) instead of shasum (Perl) (#52)

This improves performance.
This commit is contained in:
Daniel Hahler 2016-12-15 10:36:35 +01:00 committed by Arash Rouhani
parent 0ad53b6ee6
commit 448ceefd3a
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ _autoenv_hash_pair() {
echo "Missing file argument for _autoenv_hash_pair!" >&2
return 1
fi
env_shasum=$(shasum $env_file | cut -d' ' -f1)
env_shasum=$(sha1sum $env_file | cut -d' ' -f1)
fi
echo ":${env_file}:${env_shasum}:1"
}