Refactor and change author

This commit is contained in:
2020-05-05 22:22:02 -04:00
parent 9451ce720a
commit 188421eccd
2 changed files with 108 additions and 83 deletions

18
functions.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
extractImage() {
debug "${FUNCNAME[0]}" "$@"
local _gz
[[ $# -lt 1 ]] && echo "extractImage() requires at least one argument" && exit 1
for _gz in "$@"; do
[[ ! -f "$_gz" ]] && return 1
debug "gunzip -qfk $_gz"
if ! gunzip -qfk "$_gz"; then
echo "$_gz extraction failed!"
fi
done
}