if [ -d "/user_data/news_fetch.profile" ] then echo "Profile already exists, skipping creation" else google-chrome & sleep 5 cp -r /home/seluser/.config/google-chrome/Default /user_data/news_fetch.profile PID=$(pidof chrome) echo "Now killing processes with pid:" $PID kill $PID cd /user_data/news_fetch.profile wget https://github.com/iamadamdev/bypass-paywalls-chrome/archive/master.zip unzip master fi google-chrome --user-data-dir=/user_data/news_fetch.profile