vn-host/update-repo

16 lines
236 B
Bash
Executable File

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