Add script to update git on Lenny to latest
This commit is contained in:
parent
b63812a317
commit
e544a5ef3f
|
@ -116,6 +116,8 @@ function title {
|
|||
function git {
|
||||
if [ -x "/usr/local/bin/git" ]; then
|
||||
/usr/local/bin/git $@
|
||||
elif [ -x "/opt/git/bin/git" ]; then
|
||||
/opt/git/bin/git $@
|
||||
elif [ -x "/usr/bin/git" ]; then
|
||||
/usr/bin/git $@
|
||||
else
|
||||
|
|
9
home/bin/lenny-up
Executable file
9
home/bin/lenny-up
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Get some updated software on Debian Lenny, especially `git`.
|
||||
|
||||
if (!-d "/opt/git") {
|
||||
print "Fetching latest git\n";
|
||||
system(qw(wget --no-check-certificate https://rpm.kirsle.net/static-bin/git/lenny/latest.tar.gz -O git-lenny.tar.gz));
|
||||
system(qw(sudo tar -xzvf git-lenny.tar.gz -C /));
|
||||
}
|
Loading…
Reference in New Issue
Block a user