Skip to content

Commit

Permalink
Fix for paths with embedded spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
hwine committed Jan 7, 2016
1 parent f6ac219 commit 736c2a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sspa
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
root_dir=`dirname $abspath`
root_dir=`dirname "$abspath"`

function check_python() {
if ! which python > /dev/null; then
Expand Down Expand Up @@ -221,7 +221,7 @@ function help() {

action=${1:-"help"}

cd $root_dir
cd "$root_dir"

check_python

Expand Down

0 comments on commit 736c2a8

Please sign in to comment.