#!/bin/bash if [ ! "$GSGP_ID" ]; then echo "ID unavailable" >&2 exit 1 fi if [ ! "$GSGP_PROFILE" ]; then echo "Profile unavailable" >&2 exit 2 fi # path to current profile export GSGP_PROFILE_PATH="$HOME/.$GSGP_ID/profiles/$GSGP_PROFILE" # create path in case it does not yet exist mkdir -p "$GSGP_PROFILE_PATH" 2>/dev/null