Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 630 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 630 Bytes

packt_free_learning

Shell script to retrieve free book from Packt.

First time login will save your credential to $HOME/.packt file in base64($username:$password) format. Subsequently it will retrieve your credential from file.

Default download location is $HOME/packt/.

Usage

bash -c "$(curl -s https://raw.githubusercontent.com/ch33hau/packt_free_learning/master/packtpub-free-learning.sh)"

If you prefer not to download the claimed free book (eg, running cronjob at server):

PACKT_DOWNLOAD=N bash -c "$(curl -s https://raw.githubusercontent.com/ch33hau/packt_free_learning/master/packtpub-free-learning.sh)"