2011-08-22 21:27:06 -04:00
|
|
|
#!/bin/bash
|
2011-08-22 00:36:27 -04:00
|
|
|
|
|
|
|
if [ ! "$GSGP_ID" ]; then
|
|
|
|
echo "ID unavailable" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! "$GSGP_PROFILE" ]; then
|
|
|
|
echo "Profile unavailable" >&2
|
|
|
|
exit 2
|
|
|
|
fi
|
2011-08-22 21:27:06 -04:00
|
|
|
|
|
|
|
# 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
|