mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-04 07:45:26 +01:00 
			
		
		
		
	Fix newline issue when downloading files in updater.sh (#1397)
This commit is contained in:
		@@ -106,7 +106,7 @@ Optional Arguments:
 | 
				
			|||||||
download_file() { # expects URL as argument ($1)
 | 
					download_file() { # expects URL as argument ($1)
 | 
				
			||||||
  declare -r tf=$(mktemp)
 | 
					  declare -r tf=$(mktemp)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  $DOWNLOAD_METHOD "${tf}" "$1" && echo "$tf" || echo '' # return the temp-filename or empty string on error
 | 
					  $DOWNLOAD_METHOD "${tf}" "$1" &>/dev/null && echo "$tf" || echo '' # return the temp-filename or empty string on error
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
open_file() { # expects one argument: file_path
 | 
					open_file() { # expects one argument: file_path
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user