mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-07 17:07:58 +08:00
Remove temp file
This commit is contained in:
parent
9b4d9659f5
commit
2a8f26e01e
@ -27,16 +27,13 @@ start() {
|
||||
|
||||
echo 'ERROR: Agent script not found!' > /dev/ttyS0
|
||||
|
||||
TMP="/tmp/agent.sh"
|
||||
URL="https://raw.githubusercontent.com/kroese/virtual-dsm/master/agent/agent.sh"
|
||||
|
||||
rm -f "${TMP}"
|
||||
|
||||
if ! curl -sfk -m 10 -o "${TMP}" "${URL}"; then
|
||||
if ! curl -sfk -m 10 -o "${SCRIPT}" "${URL}"; then
|
||||
rm -f "${SCRIPT}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
mv -f "${TMP}" "${SCRIPT}"
|
||||
chmod 755 "${SCRIPT}"
|
||||
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user