install.fairie/home/dot_local/bin/post-installx/executable_post-fig.sh
2024-05-05 04:05:33 +00:00

10 lines
314 B
Bash

#!/usr/bin/env bash
# @file Fig Login
# @brief Logs into Fig using the FIG_TOKEN
if command -v fig > /dev/null; then
source ~/.config/shell/private.sh
fig login --token "$FIG_TOKEN" || logg info 'Fig login failed - User might already be logged in'
else
logg warn 'fig is not available in the PATH'
fi