1 2 3 4 5 6 7 8 9
#!/bin/sh set -e for task in "$@"; do echo "removing package source /etc/apt/sources.list.d/99$task.list" rm -f "/etc/apt/sources.list.d/99$task.list" done apt-get update