mirror of
				https://github.com/winapps-org/winapps.git
				synced 2025-10-31 03:14:05 +01:00 
			
		
		
		
	[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
		| @@ -464,13 +464,13 @@ function waCheckDependencies() { | ||||
| 		if command -v xfreerdp &>/dev/null; then | ||||
| 			# Check FreeRDP major version is 3 or greater. | ||||
| 			FREERDP_MAJOR_VERSION=$(xfreerdp --version | head -n 1 | grep -o -m 1 '\b[0-9]\S*' | cut -d'.' -f1) | ||||
| 			if [[ $FREERDP_MAJOR_VERSION =~ ^[0-9]+$ ]] && (( $FREERDP_MAJOR_VERSION >= 3 )); then | ||||
| 			if [[ $FREERDP_MAJOR_VERSION =~ ^[0-9]+$ ]] && ((FREERDP_MAJOR_VERSION >= 3)); then | ||||
| 				FREERDP_COMMAND="xfreerdp" | ||||
| 			fi | ||||
| 		elif command -v xfreerdp3 &>/dev/null; then | ||||
| 			# Check FreeRDP major version is 3 or greater. | ||||
| 			FREERDP_MAJOR_VERSION=$(xfreerdp3 --version | head -n 1 | grep -o -m 1 '\b[0-9]\S*' | cut -d'.' -f1) | ||||
| 			if [[ $FREERDP_MAJOR_VERSION =~ ^[0-9]+$ ]] && (( $FREERDP_MAJOR_VERSION >= 3 )); then | ||||
| 			if [[ $FREERDP_MAJOR_VERSION =~ ^[0-9]+$ ]] && ((FREERDP_MAJOR_VERSION >= 3)); then | ||||
| 				FREERDP_COMMAND="xfreerdp3" | ||||
| 			fi | ||||
| 		fi | ||||
| @@ -481,7 +481,7 @@ function waCheckDependencies() { | ||||
| 				if flatpak list --columns=application | grep -q "^com.freerdp.FreeRDP$"; then | ||||
| 					# Check FreeRDP major version is 3 or greater. | ||||
| 					FREERDP_MAJOR_VERSION=$(flatpak list --columns=application,version | grep "^com.freerdp.FreeRDP" | awk '{print $2}' | cut -d'.' -f1) | ||||
| 					if [[ $FREERDP_MAJOR_VERSION =~ ^[0-9]+$ ]] && (( $FREERDP_MAJOR_VERSION >= 3 )); then | ||||
| 					if [[ $FREERDP_MAJOR_VERSION =~ ^[0-9]+$ ]] && ((FREERDP_MAJOR_VERSION >= 3)); then | ||||
| 						FREERDP_COMMAND="flatpak run --command=xfreerdp com.freerdp.FreeRDP" | ||||
| 					fi | ||||
| 				fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	![66853113+pre-commit-ci[bot]@users.noreply.github.com](/assets/img/avatar_default.png) pre-commit-ci[bot]
					pre-commit-ci[bot]