Skip to content

Commit

Permalink
💄 Remove unnecessary conditional
Browse files Browse the repository at this point in the history
`mkdir -p` is an idempotent operation.
  • Loading branch information
mlloreda committed Oct 8, 2014
1 parent 058ff11 commit bcbf01c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions atom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ elif [ $OS == 'Linux' ]; then
ATOM_PATH="$USR_DIRECTORY/share/atom/atom"
DOT_ATOM_DIR="$HOME/.atom"

if [ ! -d "$DOT_ATOM_DIR" ]; then
mkdir -p "$DOT_ATOM_DIR"
fi
mkdir -p "$DOT_ATOM_DIR"

: ${TMPDIR:=/tmp}

Expand Down

0 comments on commit bcbf01c

Please sign in to comment.