|
#!/bin/bash
|
|
|
|
repoFile=$1
|
|
scriptFile=$(basename $0)
|
|
|
|
if [ -z "$repoFile" ]
|
|
then
|
|
echo "Usage: $scriptFile repo_file"
|
|
exit 1
|
|
fi
|
|
|
|
apt-get -qq update \
|
|
-o Dir::Etc::sourcelist="sources.list.d/$repoFile.list" \
|
|
-o Dir::Etc::sourceparts="-" \
|
|
-o APT::Get::List-Cleanup="0"
|
|
|