Skip to content

Commit 70b58df

Browse files
fix arch server setup
1 parent 58b3d4a commit 70b58df

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace.package]
22
license = "MIT"
3-
version = "25.8.14"
3+
version = "25.8.19"
44
edition = "2021"
55

66
[workspace]

core/tabs/system-setup/arch/server-setup.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,18 @@ userinfo () {
253253

254254
while true
255255
do
256-
read -rs -p "Please enter password: " PASSWORD1
257-
echo -ne "\n"
258-
read -rs -p "Please re-enter password: " PASSWORD2
259-
echo -ne "\n"
256+
# Clear any buffered input before prompting
257+
while read -r -t 0.1 -n 1; do continue; done
258+
echo -n "Please enter password: "
259+
read -rs PASSWORD1
260+
echo
261+
echo -n "Please re-enter password: "
262+
read -rs PASSWORD2
263+
echo
260264
if [[ "$PASSWORD1" == "$PASSWORD2" ]]; then
261265
break
262266
else
263-
echo -ne "ERROR! Passwords do not match. \n"
267+
echo "ERROR! Passwords do not match."
264268
fi
265269
done
266270
export PASSWORD=$PASSWORD1

tui/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ tips = ["rand"]
1515

1616
[dependencies]
1717
clap = { version = "4.5.20", features = ["derive"] }
18-
linutil_core = { version = "25.8.14", path = "../core" }
18+
linutil_core = { version = "25.8.19", path = "../core" }
1919
nix = { version = "0.29.0", features = [ "user" ] }
2020
oneshot = { version = "0.1.8", features = ["std"], default-features = false }
2121
portable-pty = "0.8.1"

0 commit comments

Comments
 (0)