Skip to content
  • Gábor Szeder's avatar
    travis-ci: don't fail if user already exists on 32 bit Linux build job · 6b995760
    Gábor Szeder authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The 32 bit Linux build job runs in a Docker container, which lends
    itself to running and debugging locally, too.  Especially during
    debugging one usually doesn't want to start with a fresh container
    every time, to save time spent on installing a bunch of dependencies.
    However, that doesn't work quite smootly, because the script running
    in the container always creates a new user, which then must be removed
    every time before subsequent executions, or the build script fails.
    
    Make this process more convenient and don't try to create that user if
    it already exists and has the right user ID in the container, so
    developers don't have to bother with running a 'userdel' each time
    before they run the build script.
    
    The build job on Travis CI always starts with a fresh Docker
    container, so this change doesn't make a difference there.
    
    Signed-off-by: default avatarSZEDER Gábor <szeder.dev@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    6b995760