Compare commits

..

3 Commits

2 changed files with 5 additions and 5 deletions

View File

@ -33,9 +33,6 @@ if [ "${HOME_USER-}" ]; then
sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
done
# Copy the HOME variable from vscode user to HOME_USER
sudo su - ${HOME_USER} -c "echo 'export HOME=\"/home/\${HOME_USER}\"' >> ~/.bashrc"
# Copy the .bashrc file from vscode user to HOME_USER
sudo su - ${HOME_USER} -c "cat /home/vscode/.bashrc >> ~/.bashrc"
@ -48,10 +45,13 @@ if [ "${HOME_USER-}" ]; then
sudo chown -R ${HOME_USER}: /home/${HOME_USER}/.vscode
# Changing the HOME_USER in the .bashrc file
sudo su - ${HOME_USER} -c 'sudo sed -i "s|/home/vscode|/home/${HOME_USER}|g" ~/.bashrc'
sudo su - ${HOME_USER} -c "sudo sed -i \"s|/home/vscode|/home/${HOME_USER}|g\" ~/.bashrc"
# Switch to the user specified by $HOME_USER and start an interactive shell session.
sudo su -l ${HOME_USER}
# Delete the vscode user
sudo userdel vscode
fi
fi

View File

@ -1 +1 @@
2.0.45
2.0.48