added configure script source todo
This commit is contained in:
parent
274a3e1772
commit
abd8645ab0
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
# Get linux distro
|
# Get linux distro
|
||||||
DISTRO=$(lsb_release -is)
|
DISTRO=$(lsb_release -is)
|
||||||
|
USR=$(who am i | awk '{print $1}')
|
||||||
|
|
||||||
if [[ $(id -u) != "0" ]] && [[ $1 != "force" ]]; then
|
if [[ $(id -u) != "0" ]] && [[ $1 != "force" ]]; then
|
||||||
echo "You must run this script as root! (To skip this, run with 'force' arg: \"./configure.sh force\")"
|
echo "You must run this script as root! (To skip this, run with 'force' arg: \"./configure.sh force\")"
|
||||||
@ -62,5 +63,5 @@ $COMMAND
|
|||||||
# Install Rust
|
# Install Rust
|
||||||
if ! [ -x "$(command -v cargo)" ]; then
|
if ! [ -x "$(command -v cargo)" ]; then
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y # Install Rust and components
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y # Install Rust and components
|
||||||
source "$HOME/.cargo/env"
|
su -u $USR source "$HOME/.cargo/env" # TODO: Not working
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user