deal with $0 having spaces in it
This commit is contained in:
parent
05dcb95a55
commit
f84b8615e5
6 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
base="$(dirname $0)"
|
base="$(dirname "$0")"
|
||||||
if [ ! -d "$base" ]; then
|
if [ ! -d "$base" ]; then
|
||||||
echo "** cannot find base directory (I seem to be $0)" >&2
|
echo "** cannot find base directory (I seem to be $0)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
base="$(dirname $0)"
|
base="$(dirname "$0")"
|
||||||
if [ ! -d "$base" ]; then
|
if [ ! -d "$base" ]; then
|
||||||
echo "** cannot find base directory (I seem to be $0)" >&2
|
echo "** cannot find base directory (I seem to be $0)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
base="$(dirname $0)"
|
base="$(dirname "$0")"
|
||||||
|
|
||||||
if [ ! -d "$base" ]; then
|
if [ ! -d "$base" ]; then
|
||||||
echo "** cannot find base directory (I seem to be $0)" >&2
|
echo "** cannot find base directory (I seem to be $0)" >&2
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
base="$(dirname $0)"
|
base="$(dirname "$0")"
|
||||||
if [ ! -d "$base" ]; then
|
if [ ! -d "$base" ]; then
|
||||||
echo "** cannot find base directory (I seem to be $0)" >&2
|
echo "** cannot find base directory (I seem to be $0)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
base="$(dirname $0)"
|
base="$(dirname "$0")"
|
||||||
if [ ! -d "$base" ]; then
|
if [ ! -d "$base" ]; then
|
||||||
echo "** cannot find base directory (I seem to be $0)" >&2
|
echo "** cannot find base directory (I seem to be $0)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
base="$(dirname $0)"
|
base="$(dirname "$0")"
|
||||||
|
|
||||||
if [ ! -d "$base" ]; then
|
if [ ! -d "$base" ]; then
|
||||||
echo "** cannot find base directory (I seem to be $0)" >&2
|
echo "** cannot find base directory (I seem to be $0)" >&2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue