Merge pull request #494 from DavidHoenisch/master
improved error handling in fido2 setup
This commit is contained in:
commit
ea0da160b8
@ -20,6 +20,10 @@ else
|
|||||||
sudo mkdir -p /etc/fido2
|
sudo mkdir -p /etc/fido2
|
||||||
echo -e "\e[32m\nLet's setup your device by confirming on the device now.\e[0m"
|
echo -e "\e[32m\nLet's setup your device by confirming on the device now.\e[0m"
|
||||||
pamu2fcfg >/tmp/fido2 # This needs to run as the user
|
pamu2fcfg >/tmp/fido2 # This needs to run as the user
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "\e[31m\nSomething went wrong. Maybe try again?\e[0m"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
sudo mv /tmp/fido2 /etc/fido2/fido2
|
sudo mv /tmp/fido2 /etc/fido2/fido2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user