From 362012e8c5789b7c96b3621b4e51c4d2a8399caa Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 22 May 2024 18:54:29 +0800 Subject: init --- install.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 install.sh (limited to 'install.sh') diff --git a/install.sh b/install.sh new file mode 100755 index 00000000..8592818b --- /dev/null +++ b/install.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +function exec() { + if $verbose; then + echo $@ + fi + $@ +} + +function sudoexec() { + if $verbose; then + echo Executing $@ as sudo... + fi + sudo $@ +} + +function have_command() { + echo -n Checking if you have command:\ + if command -v $1; then + return 0 + else + return 1 + fi +} \ No newline at end of file -- cgit v1.2.3