You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			439 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			439 B
		
	
	
	
		
			Bash
		
	
| #!/bin/bash
 | |
| 
 | |
| if [[ "$BACKUP" == "" ]]; then
 | |
|   echo "BACKUP environment variable is required"
 | |
|   exit 1
 | |
| fi
 | |
| 
 | |
| if [[ "$PROFILE" == "" ]]; then
 | |
|   echo "PROFILE environment variable is required"
 | |
|   exit 1
 | |
| fi
 | |
| 
 | |
| backupPath="$HOME/Library/Application Support/Signal-$BACKUP"
 | |
| profilePath="$HOME/Library/Application Support/Signal-$PROFILE"
 | |
| 
 | |
| rm -rf "$profilePath" && \
 | |
|   cp -R "$backupPath" "$profilePath" && \
 | |
|   NODE_APP_INSTANCE="$PROFILE" yarn start
 |