mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	install-node: Silence expected “node: command not found” on first run.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							d494181127
						
					
				
				
					commit
					7021852627
				
			@@ -20,7 +20,7 @@ check_version() {
 | 
			
		||||
    out="$(node --version)" && [ "$out" = "v$version" ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if ! check_version; then
 | 
			
		||||
if ! check_version 2>/dev/null; then
 | 
			
		||||
    tmpdir="$(mktemp -d)"
 | 
			
		||||
    trap 'rm -r "$tmpdir"' EXIT
 | 
			
		||||
    cd "$tmpdir"
 | 
			
		||||
 
 | 
			
		||||
@@ -10,12 +10,12 @@ declare -A sha256=(
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
check_version() {
 | 
			
		||||
    out="$(shellcheck --version 2>/dev/null)" && [[ "$out" = *"
 | 
			
		||||
    out="$(shellcheck --version)" && [[ "$out" = *"
 | 
			
		||||
version: $version
 | 
			
		||||
"* ]]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if ! check_version; then
 | 
			
		||||
if ! check_version 2>/dev/null; then
 | 
			
		||||
    tmpdir="$(mktemp -d)"
 | 
			
		||||
    trap 'rm -r "$tmpdir"' EXIT
 | 
			
		||||
    cd "$tmpdir"
 | 
			
		||||
 
 | 
			
		||||
@@ -17,10 +17,10 @@ case $arch in
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
check_version() {
 | 
			
		||||
    out="$(shfmt --version 2>/dev/null)" && [ "$out" = "v$version" ]
 | 
			
		||||
    out="$(shfmt --version)" && [ "$out" = "v$version" ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if ! check_version; then
 | 
			
		||||
if ! check_version 2>/dev/null; then
 | 
			
		||||
    tmpdir="$(mktemp -d)"
 | 
			
		||||
    trap 'rm -r "$tmpdir"' EXIT
 | 
			
		||||
    cd "$tmpdir"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user