23 lines
509 B
Bash
23 lines
509 B
Bash
#!/bin/bash
|
|
SERIAL=$1; EMAIL=$2; PASSWORD=$3; COMMAND=$4; UNITY_BUILDER=$5
|
|
DEFAULT_ARGS="-quit -logFile -"
|
|
|
|
rm -rf $HOME/.config/unity3d
|
|
rm -rf /home/unity/.config/unity3d
|
|
|
|
ls -al
|
|
#exit 0
|
|
#Add ssh key information for resolving packages.
|
|
bash /scripts/add_ssh_keys.sh
|
|
|
|
if [[ "$SERIAL" != "activated" ]]; then
|
|
bash /scripts/activate_license.sh "$SERIAL" "$EMAIL" "$PASSWORD"
|
|
fi
|
|
|
|
#Run the command.
|
|
if [[ -n "$UNITY_BUILDER" ]]; then
|
|
UnityBuilder $COMMAND
|
|
else
|
|
unity-editor $DEFAULT_ARGS $COMMAND
|
|
fi
|