Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A arch-boxes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Kristian Klausen
  • arch-boxes
  • Repository
Switch branch/tag
  • arch-boxes
  • build-inside-vm.sh
Find file BlameHistoryPermalink
  • Kristian Klausen's avatar
    Fix shellcheck complains due to new version · 27fe6708
    Kristian Klausen authored May 05, 2021
    Shellcheck v0.7.2[1] added more checks resulting in the following
    complains in our case:
    In build-host.sh line 12:
      readonly TMPDIR="$(mktemp --dry-run --directory --tmpdir="${PWD}/tmp")"
               ^----^ SC2155: Declare and assign separately to avoid masking return values.
    In build-inside-vm.sh line 16:
      readonly TMPDIR="$(mktemp --dry-run --directory --tmpdir="${PWD}/tmp")"
               ^----^ SC2155: Declare and assign separately to avoid masking return values.
    In build-inside-vm.sh line 19:
        chown "${SUDO_UID}:${SUDO_GID}" "${OUTPUT}" "${TMPDIR}"
                           ^---------^ SC2153: Possible misspelling: SUDO_GID may not be assigned, but SUDO_UID is.
    
    [1] https://github.com/koalaman/shellcheck/blob/331e89be990547b6e21ad1b6e56065bcda1ba053/CHANGELOG.md#v072---2021-04-19
    27fe6708