Skip to content

Commit

Permalink
fix: ensure rubocop-compliant Brewfile
Browse files Browse the repository at this point in the history
to fix #59:
- replace double quotes with single quotes (Style/StringLiterals)
- add line `# frozen_string_literal: true` (Style/FrozenStringLiteralComment) and subsequent blank line (Layout/EmptyLineAfterMagicComment)
- set `Brewfile` permissions to executable (Lint/ScriptPermission)

Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
  • Loading branch information
LucasLarson committed Apr 21, 2024
1 parent 565565e commit 4141a2b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions update
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
update='2024-04-17'
update='2024-04-21'
command -p -- printf -- '\n\n .___ __\n __ ________ __\174 _\057____ _\057 \174_ ____\n\174 \174 \134____ \134 \057 __ \174\134__ \134\134 __\134\057 __ \134\n\174 \174 \057 \174_\076 \076 \057_\057 \174 \057 __ \134\174 \174 \134 ___\057\n\174____\057\174 __\057\134____ \174\050____ \057__\174 \134___ \076\n \174__\174 \134\057 \134\057 \134\057\n a Lucas Larson production\n\n' >&2 && command -p -- sleep 1
command -p -- printf -- '\360\237\223\241 verifying network connectivity' >&2
command -p -- sleep 1
Expand Down Expand Up @@ -118,10 +118,11 @@ if command -v -- python3 >/dev/null 2>&1; then
fi
if command -v -- brew >/dev/null 2>&1; then
command brew generate-man-completions --debug --verbose 2>/dev/null
command brew bundle dump --all --cask --debug --describe --file=- --force --formula --mas --no-restart --tap --verbose --vscode --whalebrew | command -p -- sed -e '$! N' -e '/^#.*\n[^#]/ s/\n/\t/' -e 'P' -e 'D' | command -p -- sed -e 's/\(.*\)\t\(.*\)/\2\1/' | command -p -- sed -e 's/^\(tap\)/1\1/' -e 's/^\(brew\)/2\1/' -e 's/^\(cask\)/3\1/' | LC_ALL='C' command -p -- sort -f | {
command brew bundle dump --all --cask --debug --describe --file=- --force --formula --mas --no-restart --tap --verbose --vscode --whalebrew | command -p -- sed -e '/#/! s/"/'\''/g' | command -p -- sed -e '$! N' -e '/^#.*\n[^#]/ s/\n/\t/' -e 'P' -e 'D' | command -p -- sed -e 's/\(.*\)\t\(.*\)/\2\1/' | command -p -- sed -e 's/^\(tap\)/1\1/' -e 's/^\(brew\)/2\1/' -e 's/^\(cask\)/3\1/' | LC_ALL='C' command -p -- sort -f | {
command -p -- printf -- '#!/usr/bin/env ruby\n'
command -p -- printf -- '# frozen_string_literal: true\n\n'
command -p -- sed -e 's/^[[:digit:]]//' -e 's/\([^#]*\)\(#.*\)/\2\n\1/'
} >"${HOMEBREW_BUNDLE_FILE_GLOBAL:-${HOMEBREW_BUNDLE_FILE:-${HOME%/}/.Brewfile}}"
} >"${HOMEBREW_BUNDLE_FILE_GLOBAL:-${HOMEBREW_BUNDLE_FILE:-${HOME%/}/.Brewfile}}" && command -p -- chmod -- 755 "${HOMEBREW_BUNDLE_FILE_GLOBAL:-${HOMEBREW_BUNDLE_FILE:-${HOME%/}/.Brewfile}}"
fi
if command -v -- omz >/dev/null 2>&1; then omz update 2>/dev/null; fi
if command -v -- rehash >/dev/null 2>&1; then rehash; fi
Expand Down

0 comments on commit 4141a2b

Please sign in to comment.