2016-10-20 12:06:13 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-10-15 13:05:08 +00:00
|
|
|
repoFile=$1
|
|
|
|
scriptFile=$(basename $0)
|
2016-10-20 12:06:13 +00:00
|
|
|
|
2022-10-15 13:05:08 +00:00
|
|
|
if [ -z "$repoFile" ]
|
2016-10-20 12:06:13 +00:00
|
|
|
then
|
2022-10-15 13:05:08 +00:00
|
|
|
echo "Usage: $scriptFile repo_file"
|
2016-10-20 12:06:13 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-10-15 13:05:08 +00:00
|
|
|
apt-get -qq update \
|
|
|
|
-o Dir::Etc::sourcelist="sources.list.d/$repoFile.list" \
|
2016-10-20 12:06:13 +00:00
|
|
|
-o Dir::Etc::sourceparts="-" \
|
|
|
|
-o APT::Get::List-Cleanup="0"
|
|
|
|
|