summaryrefslogtreecommitdiffstats
path: root/.local/bin/allupdate
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/allupdate')
-rwxr-xr-x.local/bin/allupdate44
1 files changed, 22 insertions, 22 deletions
diff --git a/.local/bin/allupdate b/.local/bin/allupdate
index 83852bd..f439adc 100755
--- a/.local/bin/allupdate
+++ b/.local/bin/allupdate
@@ -4,40 +4,40 @@ $HOME/.local/bin/confgit.sh
## Rust ##
if [ "$(command -v rustup)" ]; then
- rustup update
+ rustup update
fi
if [ "$(command -v cargo)" ]; then
- cargo --list | grep install-update &>/dev/null
- if [ $? -eq 0 ]; then
- cargo install-update -a
- fi
+ cargo --list | grep install-update &>/dev/null
+ if [ $? -eq 0 ]; then
+ cargo install-update -a
+ fi
fi
if [ "$(command -v gcloud)" ]; then
- gcloud components update -q
+ gcloud components update -q
fi
case $(uname) in
- Darwin)
- # Brew specifics, add installed formula capture later.
- if [ "$(command -v brew)" ]; then
- brew upgrade -q
- fi
- ;;
- Linux)
- # Store APK list to a file
- apk list -I | cut -d ' ' -f 1|rev| cut -d '-' -f 3-|rev|sort -u > ~/.local/share/apklist
+Darwin)
+ # Brew specifics, add installed formula capture later.
+ if [ "$(command -v brew)" ]; then
+ brew upgrade -q
+ fi
+ ;;
+Linux)
+ # Store APK list to a file
+ apk list -I | cut -d ' ' -f 1 | rev | cut -d '-' -f 3- | rev | sort -u >~/.local/share/apklist
- ;;
+ ;;
esac
if [ "$(command -v fetchgit)" ] && [ -d $HOME/.code ]; then
- echo "Updating git repositories $(date -u +"%Y-%m-%d %H:%M:%SZ")"
- if [ -d "$HOME/.golang/go/.git" ]; then
- cd $HOME/.golang/go
- fetchgit
- fi
- if [ "$(command -v gitrect-update)" ] && [ "$(command -v gitrect-fix)" ]; then gitrect-fix && gitrect-update -y; fi
+ echo "Updating git repositories $(date -u +"%Y-%m-%d %H:%M:%SZ")"
+ if [ -d "$HOME/.golang/go/.git" ]; then
+ cd $HOME/.golang/go
+ fetchgit
+ fi
+ if [ "$(command -v gitrect-update)" ] && [ "$(command -v gitrect-fix)" ]; then gitrect-fix && gitrect-update -y; fi
fi
echo "" # Newline