summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
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 ac72b1fd..ea99893e 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 9ba90d8f..1c6d3e6a 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 b119b42e..8295acdb 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..."