From 4bac1f97b9990e70d71639ed1678a4256cc26098 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 17:47:44 +0100 Subject: added default cmd option --- src/xi.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/xi.sh') 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 -- cgit v1.2.1