hmacrypt/install.sh

18 lines
485 B
Bash
Executable File

#!/bin/bash
echo "> Creating a new conda environment..."
conda env create -f environment.yml -p ./hmacenv
# Asking for user input
echo "> Do you want to enroll your device now? (y/N)"
read enroll
if [ "$enroll" = "Y" ] || [ "$enroll" = "y" ]; then
echo "> Enrolling your device..."
cd src/bins || exit
./first_run
else
echo "> Skipping enrollment..."
echo "> To (re)enroll your device later, run the following command:"
echo "> cd src/bins && ./first_run"
fi