mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-02 18:12:31 +01:00
#382 Prevent partial execution of install.sh
This commit is contained in:
@@ -8,6 +8,7 @@ installed () {
|
|||||||
hash $1 2>/dev/null
|
hash $1 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_thefuck () {
|
||||||
# Install os dependencies:
|
# Install os dependencies:
|
||||||
if installed apt-get; then
|
if installed apt-get; then
|
||||||
# Debian/ubuntu:
|
# Debian/ubuntu:
|
||||||
@@ -55,3 +56,6 @@ fi
|
|||||||
if should_add_alias ~/.tcshrc; then
|
if should_add_alias ~/.tcshrc; then
|
||||||
echo 'eval `thefuck --alias`' >> ~/.tcshrc
|
echo 'eval `thefuck --alias`' >> ~/.tcshrc
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
install_thefuck
|
||||||
|
Reference in New Issue
Block a user