mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
remove if
This commit is contained in:
parent
5332ab64a5
commit
bd900ad69d
1 changed files with 1 additions and 4 deletions
5
Makefile
5
Makefile
|
|
@ -44,10 +44,7 @@ lorax_templates/%.tmpl: lorax_templates/%.tmpl.in
|
|||
|
||||
# Step 2: Replace vars in repo files
|
||||
repos/%.repo: /etc/yum.repos.d/%.repo
|
||||
if [[ ! -d repos ]]
|
||||
then
|
||||
mkdir repos
|
||||
fi
|
||||
mkdir repos || true
|
||||
cp /etc/yum.repos.d/$*.repo $(_BASE_DIR)/$*.repo
|
||||
sed -i "s/\$$releasever/${VERSION}/g" $(_BASE_DIR)/$*.repo
|
||||
sed -i "s/\$$basearch/${ARCH}/g" $(_BASE_DIR)/$*.repo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue