Fix shellcheck errors (includes a bug in setup-user)
This commit is contained in:
parent
c6e83bea5e
commit
b8bef1f953
9 changed files with 9 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -17,4 +17,4 @@ deinstall:
|
|||
rm -rf $(SHAREDIR)
|
||||
|
||||
shellcheck:
|
||||
find bin/ libexec/ -type f -exec shellcheck "{}" \;
|
||||
find bin/ libexec/ -type f -exec shellcheck -x "{}" \;
|
||||
|
|
|
@ -8,6 +8,7 @@ libexec="${localbase}"/libexec/sourcezap
|
|||
|
||||
##
|
||||
# functions
|
||||
# shellcheck source=/dev/null
|
||||
. "${libexec}"/functions/print.sh
|
||||
|
||||
##
|
||||
|
|
|
@ -13,6 +13,7 @@ revision="${installdir}"/.sourcezap
|
|||
|
||||
##
|
||||
# functions
|
||||
# shellcheck source=/dev/null
|
||||
. "${libexec}"/functions/print.sh
|
||||
|
||||
require_dependency()
|
||||
|
|
|
@ -11,6 +11,7 @@ branch=$2
|
|||
|
||||
##
|
||||
# functions
|
||||
# shellcheck source=/dev/null
|
||||
. "${libexec}"/functions/print.sh
|
||||
|
||||
##
|
||||
|
|
|
@ -12,6 +12,7 @@ branch=$3
|
|||
|
||||
##
|
||||
# functions
|
||||
# shellcheck source=/dev/null
|
||||
. "${libexec}"/functions/print.sh
|
||||
|
||||
##
|
||||
|
|
|
@ -13,6 +13,7 @@ revfile=$3
|
|||
|
||||
##
|
||||
# functions
|
||||
# shellcheck source=/dev/null
|
||||
. "${libexec}"/functions/print.sh
|
||||
|
||||
perform_update()
|
||||
|
|
|
@ -10,6 +10,7 @@ gitdir=$1
|
|||
|
||||
##
|
||||
# functions
|
||||
# shellcheck source=/dev/null
|
||||
. "${libexec}"/functions/print.sh
|
||||
|
||||
##
|
||||
|
|
|
@ -10,6 +10,7 @@ installdir=$2
|
|||
|
||||
##
|
||||
# functions
|
||||
# shellcheck source=/dev/null
|
||||
. "${libexec}"/functions/print.sh
|
||||
|
||||
erase()
|
||||
|
|
|
@ -16,7 +16,7 @@ user="_sourcezap"
|
|||
if id -u "${user}" > /dev/null 2>&1; then
|
||||
printok "${user} user exists"
|
||||
else
|
||||
pw useradd
|
||||
pw useradd \
|
||||
-n "${user}" \
|
||||
-c "sourcezap user" \
|
||||
-m \
|
||||
|
|
Loading…
Reference in a new issue