summaryrefslogtreecommitdiff
path: root/src/xi.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 17:47:44 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 17:47:44 +0100
commit4bac1f97b9990e70d71639ed1678a4256cc26098 (patch)
tree67500bfe9f22454328114327afe5cf8f92b1c717 /src/xi.sh
parent9752813e90d663aab55c33d3877886a9013f36db (diff)
added default cmd option
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-xsrc/xi.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xi.sh b/src/xi.sh
index 4b66025..12e9243 100755
--- a/src/xi.sh
+++ b/src/xi.sh
@@ -247,9 +247,8 @@ else
usage
;;
*)
- checkroot
- $DO_SYNC && sync
- install $@
+
+ sudo $0 ${DEFAULT_OPTION:-install} $@
;;
esac
fi