summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorKai Li <kaili_kloud@163.com>2014-03-19 15:20:09 (GMT)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>2014-03-19 19:31:38 (GMT)
commitb5803c627a4e03d9ecf90b22d4e30d31dd814b7a (patch)
tree358a6aa6b613459642121e8110d74308373551dc /data
parentade96f1dad8492f785852083db52686f3cd7b453 (diff)
downloadcaffeonacl-b5803c627a4e03d9ecf90b22d4e30d31dd814b7a.zip
caffeonacl-b5803c627a4e03d9ecf90b22d4e30d31dd814b7a.tar.gz
caffeonacl-b5803c627a4e03d9ecf90b22d4e30d31dd814b7a.tar.bz2
Fix shell script current dir bad substition errors
Diffstat (limited to 'data')
-rwxr-xr-xdata/cifar10/get_cifar10.sh2
-rwxr-xr-xdata/ilsvrc12/get_ilsvrc_aux.sh2
-rwxr-xr-xdata/mnist/get_mnist.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/data/cifar10/get_cifar10.sh b/data/cifar10/get_cifar10.sh
index ac72b1f..ea99893 100755
--- a/data/cifar10/get_cifar10.sh
+++ b/data/cifar10/get_cifar10.sh
@@ -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..."
diff --git a/data/ilsvrc12/get_ilsvrc_aux.sh b/data/ilsvrc12/get_ilsvrc_aux.sh
index 9ba90d8..1c6d3e6 100755
--- a/data/ilsvrc12/get_ilsvrc_aux.sh
+++ b/data/ilsvrc12/get_ilsvrc_aux.sh
@@ -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..."
diff --git a/data/mnist/get_mnist.sh b/data/mnist/get_mnist.sh
index b119b42..8295acd 100755
--- a/data/mnist/get_mnist.sh
+++ b/data/mnist/get_mnist.sh
@@ -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..."