We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de56571 commit c3f5e90Copy full SHA for c3f5e90
install.sh
@@ -2,6 +2,11 @@
2
3
# This is an install script for notes
4
5
+# Yay, Echo self documents! :D
6
+echo "Checking for root..."
7
+ [ "$(whoami)" != "root" ] && exec sudo -- "$0" "$@"
8
+
9
+# This has to be defined after root elevation or script will fail.
10
function assertInstalled() {
11
for var in "$@"; do
12
if ! which $var &> /dev/null; then
@@ -11,10 +16,6 @@ function assertInstalled() {
16
done
17
}
13
18
14
-# Yay, Echo self documents! :D
15
-echo "Checking for root..."
- [ "$(whoami)" != "root" ] && exec sudo -- "$0" "$@"
-
19
# Make sure we have everything actually installed that we need to install this.
20
echo "Checking for Dependencies..."
21
assertInstalled bash curl tar mktemp install make
0 commit comments