forked from kevinburkeland/it254gitproject25
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdynastydl_setup.sh
More file actions
36 lines (27 loc) · 768 Bytes
/
Copy pathdynastydl_setup.sh
File metadata and controls
36 lines (27 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
#check if running as root REQUIRED!!!!!
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "not root"
exit
fi
#dynasty scans downloader setup file
echo "installing various tools..."
#Setting up various tools
npm install -g dynasty-dl
wget -P /usr/local/bin https://raw.githubusercontent.com/CyberSkull/cbz.sh/refs/heads/master/cbz.sh
chmod +x /usr/local/bin/cbz.sh
#variables
read -p "where do you want the library to be stored? Default: /home/$USER/library" LIBPATH
echo "$LIBPATH"
echo "starting dryrun..."
if [ -d "$LIBPATH" ]; then
echo "creating directory..."
mkdir %LIBPATH
fi
#dryrun
cd $LIBPATH
echo "downloading..."
dynasty-dl https://dynasty-scans.com/series/cotton_candy
cd "Cotton Candy"/
cbz.sh *
echo "dryrun complete!"