Skip to content

Conversation

@Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Jul 15, 2024

🔖 Changes

  • move time attr to unique line
  • simplify case in entrypoint reducing shifts

shift is a bash built-in which kind of removes arguments from the beginning of the argument list. Given that the 3 arguments provided to the script are available in $1, $2, $3, then a call to shift will make $2 the new $1. A shift 2 will shift by two making new $1 the old $3.
source: https://unix.stackexchange.com/a/174568

@Chemaclass Chemaclass added the refactoring Refactoring or cleaning related label Jul 15, 2024
@Chemaclass Chemaclass self-assigned this Jul 15, 2024
@Chemaclass Chemaclass merged commit 5c07bc3 into main Jul 15, 2024
@Chemaclass Chemaclass deleted the refactor/reducing-shifts branch July 15, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Refactoring or cleaning related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants