mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	This way bash won't expand and post-process variable values in any way. The changes are driven with [`shellcheck`](https://github.com/koalaman/shellcheck)
		
			
				
	
	
		
			19 lines
		
	
	
		
			348 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			348 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
set -e
 | 
						|
set +x
 | 
						|
 | 
						|
trap "cd $(pwd -P)" EXIT
 | 
						|
if [[ ! -z "${FF_CHECKOUT_PATH}" ]]; then
 | 
						|
  cd "${FF_CHECKOUT_PATH}"
 | 
						|
  echo "WARNING: checkout path from FF_CHECKOUT_PATH env: ${FF_CHECKOUT_PATH}"
 | 
						|
else
 | 
						|
  cd "$(dirname "$0")"
 | 
						|
  cd "../firefox/checkout"
 | 
						|
fi
 | 
						|
 | 
						|
OBJ_FOLDER="obj-build-playwright"
 | 
						|
if [[ -d $OBJ_FOLDER ]]; then
 | 
						|
  rm -rf $OBJ_FOLDER
 | 
						|
fi
 | 
						|
 |