From cc8ca58cffb6d2426a1370ba15e15814967a8e75 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 11:57:19 +0100 Subject: [PATCH] rescue/bash --- bash/ovh-rescue.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bash/ovh-rescue.sh b/bash/ovh-rescue.sh index bcd66c4..4487403 100644 --- a/bash/ovh-rescue.sh +++ b/bash/ovh-rescue.sh @@ -1,4 +1,6 @@ -function ovh-rescue-configure { +#! /usr/bin/env bash + +ovh_rescue_configure() { local host="${1}" local packages=( 'byobu' 'mosh' @@ -119,8 +121,8 @@ function ovh-rescue-wipe-1-2TB { local unit='mib' # lsblk - echo -n 'WIPE' "${device}" '/?\ OR CANCEL /!\' - read + echo -n 'WIPE' "${device}" "/?\\ OR CANCEL /!\\" + read -r # parted "${device}" --script mktable gpt #