1 parent 6afffe6 commit 78dd27eCopy full SHA for 78dd27e
1 file changed
backup.sh
@@ -30,7 +30,8 @@ generate_password() {
30
if command -v openssl >/dev/null 2>&1; then
31
openssl rand -hex 16
32
else
33
- date +%s | sha256sum | head -c 32
+ color red "错误:未找到 openssl 。无法生成安全密码。"
34
+ exit 1
35
fi
36
}
37
0 commit comments