Skip to content

Instantly share code, notes, and snippets.

View snargledorf's full-sized avatar

Ryan Esteves snargledorf

View GitHub Profile
@snargledorf
snargledorf / gist:1712580
Created January 31, 2012 20:01
Script for retrieving package source using apt-get. Tested under Ubuntu 11.10
#!/bin/bash
if [ $# < 1 ] || [ $# > 2 ]
then
echo -e "Usage: \n$0 <package name> \n$0 <package name> <dir>"
exit 1
fi
if [ $# == 2 ]
then