Last active
August 29, 2015 14:05
-
-
Save gilesbowkett/8884428acf3f8aae4b84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash script | |
# accomplishes https://twitter.com/raganwald/status/501535500365086720 | |
function MacBook() { | |
if [ $1 == "THELONIUS" ] | |
then | |
if [ $2 == "Air" ] | |
then | |
arguments=($@) | |
new_arguments=() | |
for i in $(seq 2 $(expr $# - 1)) | |
do new_arguments+=( ${arguments[$i]} ) | |
done | |
sudo "${new_arguments[@]}" | |
else | |
echo "whatever DAD" | |
return 1 | |
fi | |
else | |
echo "I'll do it later" | |
return 1 | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment