projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git]
/
arc
/
install.sh
diff --git
a/arc/install.sh
b/arc/install.sh
index fb5f8c229ff0f2a82b1770a97e210f81c13044fc..81105b4b6fa987577f65fe991cf6c932133d53cd 100644
(file)
--- a/
arc/install.sh
+++ b/
arc/install.sh
@@
-1,6
+1,8
@@
-{
- set -e
- set -u
+#!/bin/bash
+set -e
+set -u
+
+function __init_arc() {
####################
# Install archiver #
####################
# Install archiver #
@@
-31,6
+33,8
@@
# arc v3.5.0 (25e050d) 2020-10-30T03:27:58Z
# This trims it down to just the version number:
# 3.5.0
# arc v3.5.0 (25e050d) 2020-10-30T03:27:58Z
# This trims it down to just the version number:
# 3.5.0
- echo "$(arc version 2>/dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
+ echo "$(arc version 2>
/dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
}
}
}
}
+
+__init_arc