mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-29 10:22:58 +08:00
add notes for the unpacker script.
This commit is contained in:
parent
6b41324cdd
commit
5151d88dec
@ -1,6 +1,7 @@
|
||||
## only needs to have the file with a file passed into it to get the filetype.
|
||||
## only supports tar.gz/xz and zip currently for unpacking.
|
||||
## The value for ${DOWNLOAD_LINK##*/} is
|
||||
## The value for ${DOWNLOAD_LINK##*/} is derived from DOWNLOAD_LINK
|
||||
## if the download link is https://launcher.mojang.com/v1/objects/3dc3d84a581f14691199cf6831b71ed1296a9fdf/server.jar then the ##*/ is server.jar
|
||||
|
||||
FILETYPE=$(file -F ',' ${DOWNLOAD_LINK##*/} | cut -d',' -f2 | cut -d' ' -f2)
|
||||
if [ "$FILETYPE" == "gzip" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user