Quote version string which may contain spaces, etc
This commit is contained in:
1 parent
ffc5a78139
commit
15d91c558b
1 file changed
+3
-3
@@ -35,8 +35,8 @@ PLUGIN="weave-plugin-$VERSION"
|
|||||||
|
|
||||||
install_cni_plugin() {
|
install_cni_plugin() {
|
||||||
mkdir -p $1 || return 1
|
mkdir -p $1 || return 1
|
||||||
if [ ! -f $1/$PLUGIN ]; then
|
if [ ! -f "$1/$PLUGIN" ]; then
|
||||||
cp "$SOURCE_BINARY" $1/$PLUGIN
|
cp "$SOURCE_BINARY" "$1/$PLUGIN"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ upgrade_cni_plugin_symlink() {
|
|||||||
# Remove potential temporary symlink from previous failed upgrade:
|
# Remove potential temporary symlink from previous failed upgrade:
|
||||||
rm -f $1/$2.tmp
|
rm -f $1/$2.tmp
|
||||||
# Atomically create a symlink to the plugin:
|
# Atomically create a symlink to the plugin:
|
||||||
ln -s $1/$PLUGIN $1/$2.tmp && mv -f $1/$2.tmp $1/$2
|
ln -s "$1/$PLUGIN" $1/$2.tmp && mv -f $1/$2.tmp $1/$2
|
||||||
}
|
}
|
||||||
|
|
||||||
upgrade_cni_plugin() {
|
upgrade_cni_plugin() {
|
||||||
|
|||||||
Reference in new issue
Block a user