How can I write a gem install or apt-get install in bash without letting it use sudo?#!/usr/bin/env bashapt-get update -yapt-get upgrade -ygpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3\curl -sSL https://get.rvm.io | bash -s stable --rubysource /usr/local/rvm/scripts/rvm((EUID)) || exitgem install jekyll
How to write bash script without using sudo in it?
bash;shell script