Skip to content

Commit

Permalink
[robot] alias -> function
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Oct 22, 2024
1 parent ec19bc2 commit 7fd461b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions robot/setup
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
export ROBOT_REAL=true

# Logout global git user on robot
alias git-logout='git config --global --get user.name > /dev/null && git config --global --remove user'
function git-logout
{
git config --global --get user.name > /dev/null && git config --global --remove user
}

# If this is run the first since this computer was started, remove
# the user details (forcing the user to 'log-in')
if [ ! -f /tmp/git-removed-user-details ]
if [[ ! -f /tmp/git-removed-user-details ]]
then
touch /tmp/git-removed-user-details
git-logout
Expand Down

0 comments on commit 7fd461b

Please sign in to comment.