mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 19:39:15 +00:00
shell linting
This commit is contained in:
1
tests-ng/chmod-import.sh
vendored
1
tests-ng/chmod-import.sh
vendored
@@ -54,6 +54,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename "${BASH_SOURCE[0]}") <==$(tput sg
|
||||
chmod_to_umask()
|
||||
{
|
||||
u=$(umask)
|
||||
# shellcheck disable=SC2001
|
||||
u=$(echo "${u}" | sed 's/^0*//')
|
||||
if [ -d "${1}" ]; then
|
||||
v=$((777 - u))
|
||||
|
||||
Reference in New Issue
Block a user