Skip to content

Commit 669e6f5

Browse files
committed
Ensure the whole script is downloaded before executing
This protects against partail executions if the file is not fully pulled. Signed-off-by: Eric Curtin <[email protected]>
1 parent e6c07b9 commit 669e6f5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

public/install.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
22

3-
set -euo pipefail
3+
main() {
4+
set -euo pipefail
5+
6+
local url="https://raw.githubusercontent.com/containers/ramalama/s/install.sh"
7+
curl -fsSL "$url" | bash
8+
}
9+
10+
main "$@"
411

5-
curl -fsSL https://raw.githubusercontent.com/containers/ramalama/s/install.sh | bash

0 commit comments

Comments
 (0)