Skip to content

Commit

Permalink
Fix shell script current dir bad substition errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kloudkl authored and shelhamer committed Mar 19, 2014
1 parent ade96f1 commit b5803c6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data/cifar10/get_cifar10.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
# This scripts downloads the CIFAR10 (binary version) data and unzips it.

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(readlink -f $(dirname "$0"))"
cd $DIR

echo "Downloading..."
Expand Down
2 changes: 1 addition & 1 deletion data/ilsvrc12/get_ilsvrc_aux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# - synset ids and words
# - the training splits with labels

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(readlink -f $(dirname "$0"))"
cd $DIR

echo "Downloading..."
Expand Down
2 changes: 1 addition & 1 deletion data/mnist/get_mnist.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
# This scripts downloads the mnist data and unzips it.

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(readlink -f $(dirname "$0"))"
cd $DIR

echo "Downloading..."
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_and_deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MSG=`git log --oneline -1`

if [[ $BRANCH = 'master' ]]; then
# Find the docs dir, no matter where the script is called
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(readlink -f $(dirname "$0"))"
DOCS_SITE_DIR=$DIR/../docs/_site

# Make sure that docs/_site tracks remote:gh-pages.
Expand Down
2 changes: 1 addition & 1 deletion tools/extra/parselog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# another one caffe.log.loss that contains the loss computed during the training

#get the dirname of the script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(readlink -f $(dirname "$0"))"

if [ "$#" -lt 1 ]
then
Expand Down

0 comments on commit b5803c6

Please sign in to comment.