Skip to content

Commit

Permalink
consistent brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
johnko committed Jan 18, 2025
1 parent a4f2e0e commit 594a006
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/macos-brew-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail

if which brew >/dev/null 2>&1 ; then
if [ -e Brewfile ]; then
if [[ -e Brewfile ]] ; then
set -x
brew bundle
set +x
Expand Down
2 changes: 1 addition & 1 deletion bin/macos-dock-tilesize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu
print_cmd(){

while read LINE ; do
if [[ -n "$LINE" ]]; then
if [[ -n "$LINE" ]] ; then
KEY=$( echo "$LINE" | tr -d ' ' | awk -F= '{print $1}' )
VAL=$( echo "$LINE" | tr -d ' ' | awk -F= '{print $2}' | tr -d ';' )
if echo "$VAL" | grep -q -E '^[0-9]+$' ; then
Expand Down
2 changes: 1 addition & 1 deletion bin/macos-ramdisk.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -eux

if [[ ! -e /Volumes/RAMDisk/.metadata_never_index ]]; then
if [[ ! -e /Volumes/RAMDisk/.metadata_never_index ]] ; then
set +x
echo "=> Creating $1 GB /Volumes/RAMDisk..."
set -x
Expand Down
2 changes: 1 addition & 1 deletion bin/macos-skhd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euo pipefail

echo "=> Installing latest skhd..."

if [ -e ~/bin/skhd ]; then
if [[ -e ~/bin/skhd ]] ; then
echo "=> An older version already installed at ~/bin/skhd"
exit 1
else
Expand Down
2 changes: 1 addition & 1 deletion bin/macos-yabai.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euo pipefail

echo "=> Installing latest yabai..."

if [ -e ~/bin/yabai ]; then
if [[ -e ~/bin/yabai ]] ; then
echo "=> An older version already installed at ~/bin/yabai"
exit 1
else
Expand Down
2 changes: 1 addition & 1 deletion bin/setup-python3.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

if [ -e "$HOME/Library/Python/3.8/bin" ]; then
if [[ -e "$HOME/Library/Python/3.8/bin" ]] ; then
export PATH=$PATH:$HOME/Library/Python/3.8/bin
fi

Expand Down
2 changes: 1 addition & 1 deletion bin/yabai_cycle_clockwise.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ win=$(yabai -m query --windows --window last | jq '.id')

while : ; do
yabai -m window $win --swap prev &> /dev/null
if [[ $? -eq 1 ]]; then
if [[ $? -eq 1 ]] ; then
break
fi
done

0 comments on commit 594a006

Please sign in to comment.