summaryrefslogtreecommitdiff
path: root/home/var/system/config-updater/post-update
diff options
context:
space:
mode:
authorDavid Kaufmann <astra@ionic.at>2018-05-03 20:36:13 +0200
committerDavid Kaufmann <astra@ionic.at>2018-05-03 20:36:13 +0200
commita8bc844250f0ee4f151e2dd8f559bee776f4d901 (patch)
tree2e340d184262bc93fa35efa47b67851e370bc98d /home/var/system/config-updater/post-update
parent7eaf48526b14e6db0d94c06eb36eb86217947328 (diff)
downloadconfig-a8bc844250f0ee4f151e2dd8f559bee776f4d901.tar.gz
install oh-my-zsh in postupdate
Diffstat (limited to 'home/var/system/config-updater/post-update')
-rw-r--r--home/var/system/config-updater/post-update7
1 files changed, 7 insertions, 0 deletions
diff --git a/home/var/system/config-updater/post-update b/home/var/system/config-updater/post-update
index 24757d8..42ae53d 100644
--- a/home/var/system/config-updater/post-update
+++ b/home/var/system/config-updater/post-update
@@ -1,2 +1,9 @@
rm -f this_file_will_be_deleted
rm -f bin/config-update.sh
+if ! [ -d $HOME/.oh-my-zsh ]; then
+ if which curl ; then
+ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
+ elif which wget ; then
+ sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
+ fi
+fi