#!/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"