Blame docker-builder-data/build/script/include/inc-pkunpack-default.sh

e14835
e14835
# PK_ARCHIVE
e14835
e14835
pkunpack() {
e14835
	if [ ${PK_ARCHIVE: -7} == ".tar.gz" ]; then
e14835
    	if ! tar -xzf "$DOWNLOAD_PACKET_DIR/$PK_ARCHIVE"; then
e14835
        	return 1
e14835
    	fi
e14835
	elif [ ${PK_ARCHIVE: -7} == ".tgz" ]; then
e14835
    	if ! tar -xzf "$DOWNLOAD_PACKET_DIR/$PK_ARCHIVE"; then
e14835
        	return 1
e14835
    	fi
e14835
	else
e14835
    	if ! tar -xf "$DOWNLOAD_PACKET_DIR/$PK_ARCHIVE"; then
e14835
        	return 1
e14835
    	fi
e14835
	fi
e14835
}