Skip to content

Commit 410ebac

Browse files
committed
Fix spaces-in-path issues for DigitalOcean contrib scripts.
It also removed unused variables in one script.
1 parent fdb1b30 commit 410ebac

2 files changed

Lines changed: 2 additions & 5 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

0 commit comments

Comments
 (0)