#!/bin/bash klist -s if [ $? -eq 0 ] then echo -e "\e[92mReusing old credentials\e[0m" else kinit fi aklog klist