Skip to content

[Feature Request]: check/ck_umask: check if current umask is equal to given value or one of the given list #79

@aronchanisme

Description

@aronchanisme

Is there an existing issue for the feature request?

  • I have checked the existing issues.

Feature Description

check if current umask is equal to given value or one of the given list

usage: 
check/ck_umask.sh <umask_list>, where,
umask_list: umask list, seperated by comma, e.g. 0022,0027

example:
check/ck_umask.sh 0022,0027
check/ck_umask.sh 0022

output:
return 0: if current umask is in given list
return 1: if current umask is not in given list

Feature Implementation

Linux:

current_umask=`umask` #0022

Mac:

current_umask=`umask` #022

Additional information

https://blog.csdn.net/frdevolcqzyxynjds/article/details/120200231

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions