aboutsummaryrefslogtreecommitdiffstats
path: root/include/shell.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/shell.sh')
-rw-r--r--include/shell.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/shell.sh b/include/shell.sh
index 1e60692b97..db41003262 100644
--- a/include/shell.sh
+++ b/include/shell.sh
@@ -28,3 +28,7 @@ trapret() {(
}
}
)}
+
+md5s() {
+ which md5sum 2>&- >&- && md5sum "$@" | awk '{print $1}' || md5 "$@"
+}