Skip to content

Commit 86160ce

Browse files
committed
Merge pull request #473 from nathansamson/nathan/vagrant-space-fix2
LGTM, tested with Vagrant and EC2.
2 parents add5695 + 21ac978 commit 86160ce

5 files changed

Lines changed: 7 additions & 10 deletions

File tree

contrib/digitalocean/prepare-digitalocean-snapshot.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
# 4. Create/update your Deis flavors to use your new snapshot
1212
#
1313

14-
THIS_DIR=$(cd $(dirname $0); pwd) # absolute path
15-
CONTRIB_DIR=$(dirname $THIS_DIR)
16-
1714
# Remove old kernel(s)
1815
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
1916

contrib/digitalocean/provision-digitalocean-controller.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ function echo_color {
1515
}
1616

1717
THIS_DIR=$(cd $(dirname $0); pwd) # absolute path
18-
CONTRIB_DIR=$(dirname $THIS_DIR)
18+
CONTRIB_DIR=$(dirname "$THIS_DIR")
1919

2020
# check for Deis' general dependencies
21-
if ! $CONTRIB_DIR/check-deis-deps.sh; then
21+
if ! "$CONTRIB_DIR/check-deis-deps.sh"; then
2222
echo 'Deis is missing some dependencies.'
2323
exit 1
2424
fi

contrib/ec2/provision-ec2-controller.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ function echo_color {
1313
}
1414

1515
THIS_DIR=$(cd $(dirname $0); pwd) # absolute path
16-
CONTRIB_DIR=$(dirname $THIS_DIR)
16+
CONTRIB_DIR=$(dirname "$THIS_DIR")
1717

1818
# check for Deis' general dependencies
19-
if ! $CONTRIB_DIR/check-deis-deps.sh; then
19+
if ! "$CONTRIB_DIR/check-deis-deps.sh"; then
2020
echo 'Deis is missing some dependencies.'
2121
exit 1
2222
fi

contrib/rackspace/provision-rackspace-controller.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ function echo_color {
1313
}
1414

1515
THIS_DIR=$(cd $(dirname $0); pwd) # absolute path
16-
CONTRIB_DIR=$(dirname $THIS_DIR)
16+
CONTRIB_DIR=$(dirname "$THIS_DIR")
1717

1818
# check for Deis' general dependencies
19-
if ! $CONTRIB_DIR/check-deis-deps.sh; then
19+
if ! "$CONTRIB_DIR/check-deis-deps.sh"; then
2020
echo 'Deis is missing some dependencies.'
2121
exit 1
2222
fi

contrib/vagrant/provision-controller.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ knife data bag create deis-apps 2>/dev/null
5252

5353
# Boot the deis-controller VM
5454
echo_color "Booting $node_name with 'vagrant up'"
55-
pushd $THIS_DIR/../../
55+
pushd "$THIS_DIR/../../"
5656
vagrant up --provision
5757
if [ $? -gt 0 ]; then
5858
echo_color "Canceling provision because 'vagrant up' failed"

0 commit comments

Comments
 (0)