mirror of
				https://github.com/optim-enterprises-bv/secureblue.git
				synced 2025-11-04 04:18:01 +00:00 
			
		
		
		
	fix: remove newlines before wget
including the newlines causes filenames to be postfixed with %0A and thus the repo files to not work this commit uses the same bashism as above line to remove newlines from the $REPO var before using it in the wget command
This commit is contained in:
		@@ -9,7 +9,7 @@ if [[ ${#REPOS[@]} -gt 0 ]]; then
 | 
				
			|||||||
    echo "Adding repositories"
 | 
					    echo "Adding repositories"
 | 
				
			||||||
    for REPO in "${REPOS[@]}"; do
 | 
					    for REPO in "${REPOS[@]}"; do
 | 
				
			||||||
        REPO="${REPO//%OS_VERSION%/${OS_VERSION}}"
 | 
					        REPO="${REPO//%OS_VERSION%/${OS_VERSION}}"
 | 
				
			||||||
        wget "${REPO}" -P "/etc/yum.repos.d/"
 | 
					        wget "${REPO//[$'\t\r\n ']}" -P "/etc/yum.repos.d/"
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user