#!/bin/bash while IFS= read -r line ; do echo "sudo pacman -S --noconfirm --needed $line" done < $1 # Get Blender while true; do echo -e "\n\n" read -p "Please enter the release of blender you want (eg. 4.1): " blender if [[ ! -z $blender ]]; then if [[ ! -d /home/$(whoami)/Software ]]; then "mkdir /home/$(whoami)/Software" fi cd "/home/$(whoami)/Software" count=9 while [ $count -ge 0 ]; do echo "wget 'https://download.blender.org/release/Blender$blender/blender-$blender.$count-linux-x64.tar.xz'" if [[ $? == 0 ]]; then blenderversion="blender-$blender.$count-linux-x64.tar.xz" echo "cd /home/$(whoami)/Software/ && tar -xvf $blenderversion" break fi ((count--)) done if [[ $? != 0 ]]; then echo "Couldn't find that version of blender, try again." cd "" else break fi fi done