Skip to content

Commit f37cdbf

Browse files
committed
pacify shellcheck
1 parent 3f59804 commit f37cdbf

7 files changed

+10
-50
lines changed

Diff for: brew.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
# Install command-line tools using Homebrew
44

Diff for: docs/clearing-disk-space.sh

-41
This file was deleted.

Diff for: docs/common-things.sh

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#!/bin/bash
2-
3-
4-
1+
# shellcheck disable=2148
52

63

74
# listing all useragent from your logs
@@ -56,9 +53,9 @@ rm $chromefilename
5653

5754
# measuring time in fish shell:
5855

59-
set -l then (gdate +%s%N);
60-
sleep 0.5;
61-
set -l andnow (gdate +%s%N); echo cool (math ( math $andnow - $then) / 1000 / 1000 )
56+
# set -l earlier (gdate +%s%N);
57+
# sleep 0.5;
58+
# set -l andnow (gdate +%s%N); echo cool (math ( math $andnow - $earlier) / 1000 / 1000 )
6259

6360

6461

Diff for: docs/upsampling images.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# shellcheck disable=2148
2+
13
# basic
24
convert image-filename.png -resize 300% image-filename.3x-basic.png
35

Diff for: setup-a-new-machine.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# copy paste this file in bit by bit.
22
# don't run it.
3+
# shellcheck disable=2148
34
echo "do not run this script in one go. hit ctrl-c NOW"
45
read -n 1
56

Diff for: setup-chromium.sh

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
## Chromium hacking
33

44
# improve perf of git inside of chromium checkout
5+
# shellcheck disable=2148
56

67
# Read https://chromium.googlesource.com/chromium/src/+/HEAD/docs/mac_build_instructions.md#improving-performance-of-git-commands
78
# ... and do it all.

Diff for: symlink-setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ main() {
159159
local sourceFile=""
160160
local targetFile=""
161161

162-
for i in ${FILES_TO_SYMLINK[@]}; do
162+
for i in "${FILES_TO_SYMLINK[@]}"; do
163163

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

0 commit comments

Comments
 (0)