Skip to content

Commit

Permalink
Fixed Install and Running from this version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Me committed Sep 3, 2021
1 parent 9af1cd0 commit 199abab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
15 changes: 8 additions & 7 deletions ccdl.command
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"

clear
# clear

if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
# clear
echo "${CYAN}python3 found!${RESET}"
else
clear
# clear
echo "python3 found but non-functional" # probably xcode-select stub on Catalina+
echo "${CYAN}If you received a popup asking to install some tools, please accept.${RESET}"
read -n1 -r -p "Press [SPACE] when installation is complete, or any other key to abort." key
echo ""
if [ "$key" != '' ]; then
exit
exit 1
fi
fi
else
Expand All @@ -34,8 +34,9 @@ else
echo "${CYAN}installing requests...${RESET}"
python3 -m pip install requests --user
fi

clear
python -c "import tqdm" || pip3 install tqdm
# clear

echo "${CYAN}starting ccdl${RESET}"
python3 <(cat ./ccdl.py)
cd "$(dirname "$0")"
python3 "./ccdl.py"
9 changes: 4 additions & 5 deletions install.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"

curl https://gist.githubusercontent.com/thpryrchn/c0ea1b6793117b00494af5f05959d526/raw/ccdl.command -o "/Applications/Adobe Packager.command"
srcfolder="$(cd "$(dirname "$0")" ; pwd)"
sed "s!./ccdl.py!$srcfolder/ccdl.py!" "$srcfolder/ccdl.command" > "/Applications/Adobe Packager.command"
chmod +x "/Applications/Adobe Packager.command"

clear
# clear

echo "${CYAN}Done! You can now start /Applications/Adobe Packager.command to begin${RESET}"
exit
exit

0 comments on commit 199abab

Please sign in to comment.