Skip to content

Commit ad14f7d

Browse files
committed
Expirement overriding the $HOME with a subdirectory
1 parent 005d40e commit ad14f7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rust-build/pre_build_rust_keylock_android.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ cd $BASEDIR/../
55
BASEDIR=`pwd`
66
echo Base directory is $BASEDIR
77

8+
# Save the current HOME variable and override it with a subdirectory
9+
mkdir home
10+
HOME_BAK=$HOME
11+
HOME=$BASEDIR/home
12+
813
# Install the latest rust stable and cargo
914
`curl https://sh.rustup.rs -sSf | sh -s -- -y`
1015
PATH=$PATH:$HOME/.cargo/bin

0 commit comments

Comments
 (0)