diff --git a/VERSION b/VERSION index e85669f..1435d6c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.36 +0.0.37 diff --git a/install.sh b/install.sh index b373745..9bbf638 100755 --- a/install.sh +++ b/install.sh @@ -413,18 +413,26 @@ main() { local method="prebuilt binary from Gitea" $BUILD_FROM_SOURCE && method="source build from $SB_REPO" - cat >&2 <&2 - read -r reply || reply="" + print_warning "This will run apt-get install (sudo) and clone/build FIPS. Continue? [y/N]" + # Read from /dev/tty, not stdin: in `curl | bash` mode stdin is the + # curl pipe (the script text), so a plain `read` would hit EOF and + # abort immediately. /dev/tty is the user's terminal. + if [[ -r /dev/tty ]]; then + read -r reply < /dev/tty || reply="" + else + # No tty available (e.g. non-interactive CI) — require --yes. + die "No tty available for confirmation. Re-run with --yes to skip prompts." + fi reply="${reply:-n}" if [[ ! "${reply,,}" =~ ^y(es)?$ ]]; then die "Aborted by user." diff --git a/src/version.h b/src/version.h index a8c4dce..b0b8f42 100644 --- a/src/version.h +++ b/src/version.h @@ -11,9 +11,9 @@ #ifndef SOVEREIGN_BROWSER_VERSION_H #define SOVEREIGN_BROWSER_VERSION_H -#define SB_VERSION "v0.0.36" +#define SB_VERSION "v0.0.37" #define SB_VERSION_MAJOR 0 #define SB_VERSION_MINOR 0 -#define SB_VERSION_PATCH 36 +#define SB_VERSION_PATCH 37 #endif /* SOVEREIGN_BROWSER_VERSION_H */