Do not ask to save password for unsupported os

This commit is contained in:
斟酌 鵬兄 2024-07-11 23:14:55 +08:00
parent 9a9425b1e4
commit f69c09a37d

View File

@ -219,12 +219,15 @@ function _kstoresecret-config {
return 1
fi
read -p "Save this password to OS's keystore? (y/n): " _CONFIRM
if [ "$_CONFIRM" != "y" ]; then
return 0
fi
_kstoresecret-auto set
case $OSTYPE in
cygwin|darwin*)
read -p "Save this password to OS's keystore? (y/n): " _CONFIRM
if [ "$_CONFIRM" != "y" ]; then
return 0
fi
_kstoresecret-auto set
;;
esac
fi
}