Skip to content

Commit

Permalink
pacify shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jun 1, 2024
1 parent 3f59804 commit f37cdbf
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 50 deletions.
2 changes: 1 addition & 1 deletion brew.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash

# Install command-line tools using Homebrew

Expand Down
41 changes: 0 additions & 41 deletions docs/clearing-disk-space.sh

This file was deleted.

11 changes: 4 additions & 7 deletions docs/common-things.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#!/bin/bash



# shellcheck disable=2148


# listing all useragent from your logs
Expand Down Expand Up @@ -56,9 +53,9 @@ rm $chromefilename

# measuring time in fish shell:

set -l then (gdate +%s%N);
sleep 0.5;
set -l andnow (gdate +%s%N); echo cool (math ( math $andnow - $then) / 1000 / 1000 )
# set -l earlier (gdate +%s%N);
# sleep 0.5;
# set -l andnow (gdate +%s%N); echo cool (math ( math $andnow - $earlier) / 1000 / 1000 )



Expand Down
2 changes: 2 additions & 0 deletions docs/upsampling images.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# shellcheck disable=2148

# basic
convert image-filename.png -resize 300% image-filename.3x-basic.png

Expand Down
1 change: 1 addition & 0 deletions setup-a-new-machine.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# copy paste this file in bit by bit.
# don't run it.
# shellcheck disable=2148
echo "do not run this script in one go. hit ctrl-c NOW"
read -n 1

Expand Down
1 change: 1 addition & 0 deletions setup-chromium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## Chromium hacking

# improve perf of git inside of chromium checkout
# shellcheck disable=2148

# Read https://chromium.googlesource.com/chromium/src/+/HEAD/docs/mac_build_instructions.md#improving-performance-of-git-commands
# ... and do it all.
Expand Down
2 changes: 1 addition & 1 deletion symlink-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ main() {
local sourceFile=""
local targetFile=""

for i in ${FILES_TO_SYMLINK[@]}; do
for i in "${FILES_TO_SYMLINK[@]}"; do

sourceFile="$(pwd)/$i"
targetFile="$HOME/$(printf "%s" "$i" | sed "s/.*\/\(.*\)/\1/g")"
Expand Down

0 comments on commit f37cdbf

Please sign in to comment.