mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 13:06:59 +02:00
cleanup: remove a couple references to chrome-bot
This commit is contained in:
parent
81fb3e12a0
commit
09e720e821
@ -39,7 +39,7 @@ delete_prompt() {
|
||||
|
||||
# Only prompt if both stdin and stdout are a tty. If either is not a tty,
|
||||
# then the user may not be present, so we shouldn't bother prompting.
|
||||
if [ -t 0 -a -t 1 -a "${USER}" != 'chrome-bot' ]; then
|
||||
if [ -t 0 -a -t 1 ]; then
|
||||
read -p "Would you like to delete the output directory (y/N)? " SURE
|
||||
SURE="${SURE:0:1}" # Get just the first character.
|
||||
else
|
||||
|
@ -244,11 +244,6 @@ EOF
|
||||
echo ". ~/trunk/src/scripts/bash_completion" \
|
||||
| user_append "$FLAGS_chroot/home/${SUDO_USER}/.bashrc"
|
||||
|
||||
if [[ "${SUDO_USER}" = "chrome-bot" ]]; then
|
||||
# Copy ssh keys, so chroot'd chrome-bot can scp files from chrome-web.
|
||||
cp -rp ~/.ssh "$FLAGS_chroot/home/${SUDO_USER}/"
|
||||
fi
|
||||
|
||||
if [[ -f ${SUDO_HOME}/.gitconfig ]]; then
|
||||
# Copy .gitconfig into chroot so repo and git can be used from inside.
|
||||
# This is required for repo to work since it validates the email address.
|
||||
|
Loading…
Reference in New Issue
Block a user