This commit is contained in:
Marc Beninca 2025-07-27 20:50:00 +02:00
parent 39ef73fbfe
commit e5620aab3f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

25
sh/io/chmod.sh Normal file
View file

@ -0,0 +1,25 @@
# chmod
# change mode
#| chmod
#= cm
rwx_change_mode() {
chmod \
"${@}"
}
# change mode to directory
#= cmd
rwx_change_mode_directory() {
rwx_change_mode \
"755" \
"${@}"
}
# change mode to file
#= cmf
rwx_change_mode_file() {
rwx_change_mode \
"644" \
"${@}"
}