summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-03-22 13:44:53 +0100
committerIrina Gómez <irinagomez@us.es>2019-03-22 13:44:53 +0100
commitce1aa0b33271d3cad06ee52004f011d00195aebc (patch)
tree0340c051e3bac17a9cb291d0c2b407f8310c6ec3 /client/shared/scripts
parent52ff48909f43e37aafc586afcbef04787b12fc11 (diff)
#905 Fix deployImage: When protocol is '*-CACHE' remove string after the hyphen
Diffstat (limited to 'client/shared/scripts')
-rwxr-xr-xclient/shared/scripts/deployImage2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/shared/scripts/deployImage b/client/shared/scripts/deployImage
index 824da2af..b6696443 100755
--- a/client/shared/scripts/deployImage
+++ b/client/shared/scripts/deployImage
@@ -119,6 +119,8 @@ case "$MODE" in
# Si protocolo es torrent|torrent-cache o multicast|multicast-cache
TORRENT|TORRENT-CACHE|MULTICAST|MULTICAST-CACHE|UNICAST|UNICAST-CACHE)
+ # Eliminamos CACHE o DIRECT
+ PROTO=${PROTO%%-*}
ogEcho log session "[2] updateCache "$REPO" \"/$IMGNAME.img\" $PROTO $PROTOOPT"
TIME2=$SECONDS
updateCache "$REPO" "/$IMGNAME.img" "$PROTO" "$PROTOOPT"