Skip to content

Commit 19a7e23

Browse files
committed
fix script path incantation
1 parent aa0a52f commit 19a7e23

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

data/cifar10/get_cifar10.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env sh
22
# This scripts downloads the CIFAR10 (binary version) data and unzips it.
33

4-
DIR="$(readlink -f $(dirname "$0"))"
4+
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
55
cd $DIR
66

77
echo "Downloading..."

data/ilsvrc12/get_ilsvrc_aux.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# - synset ids and words
77
# - the training splits with labels
88

9-
DIR="$(readlink -f $(dirname "$0"))"
9+
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
1010
cd $DIR
1111

1212
echo "Downloading..."

data/mnist/get_mnist.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env sh
22
# This scripts downloads the mnist data and unzips it.
33

4-
DIR="$(readlink -f $(dirname "$0"))"
4+
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
55
cd $DIR
66

77
echo "Downloading..."

scripts/build_and_deploy_docs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ MSG=`git log --oneline -1`
1515

1616
if [[ $BRANCH = 'master' ]]; then
1717
# Find the docs dir, no matter where the script is called
18-
DIR="$(readlink -f $(dirname "$0"))"
18+
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
1919
DOCS_SITE_DIR=$DIR/../docs/_site
2020

2121
# Make sure that docs/_site tracks remote:gh-pages.

tools/extra/parse_log.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
2-
# Usage parse_log.sh caffe.log
2+
# Usage parse_log.sh caffe.log
33
# It creates two files one caffe.log.test that contains the loss and test accuracy of the test and
44
# another one caffe.log.loss that contains the loss computed during the training
55

6-
#get the dirname of the script
7-
DIR="$(readlink -f $(dirname "$0"))"
6+
# get the dirname of the script
7+
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
88

99
if [ "$#" -lt 1 ]
1010
then

0 commit comments

Comments
 (0)