Skip to content

Instantly share code, notes, and snippets.

@ytsarev
Created February 13, 2017 10:28
Show Gist options
  • Save ytsarev/f76b5bee7abd86a7a6ff8a31c1f12f0a to your computer and use it in GitHub Desktop.
Save ytsarev/f76b5bee7abd86a7a6ff8a31c1f12f0a to your computer and use it in GitHub Desktop.
function add_repo_url {
local repo="${1?}"
read -p "Enter repository URL for '$repo': " url
mkdir -p /etc/kiwi
echo "{$repo} $url" >> /etc/kiwi/repoalias \
&& echo "{$repo} $url alias added to /etc/kiwi/repoalias"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment