Fixing small stuff.
This commit is contained in:
parent
a9910ed093
commit
d9f5e78231
@ -48,11 +48,11 @@ change_dir(){
|
|||||||
else
|
else
|
||||||
cd "$2"
|
cd "$2"
|
||||||
fi
|
fi
|
||||||
if [ ! $(expr match $(pwd) '\(/tmp/tmp.[a-zA-Z0-9]*\)') ]
|
if [ ! $(expr match $(pwd) '\(/tmp/tmp.[a-zA-Z0-9]*\)') ]
|
||||||
then
|
then
|
||||||
echo "Deleting tmp folder $1."
|
echo "Deleting tmp folder $1."
|
||||||
rm -rf "$1"
|
rm -rf "$1"
|
||||||
unalias cd
|
unalias cd
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -98,12 +98,13 @@ delete-old-archives() {
|
|||||||
sudo tarsnap -d -f "$archive"
|
sudo tarsnap -d -f "$archive"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
update-mirrors() {
|
update-mirrors() {
|
||||||
if [[ $(uname -m) != "x86_64" ]]
|
if [[ $(uname -m) != "x86_64" ]]
|
||||||
then
|
then
|
||||||
echo "Not supported on this architecture."
|
echo "Not supported on this architecture."
|
||||||
else
|
else
|
||||||
sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist"
|
sudo sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user