fix permission script

This commit is contained in:
joglomedia
2019-12-25 17:06:26 +07:00
parent 64da482dc5
commit 58539f4746

View File

@@ -1,8 +1,13 @@
#!/bin/sh
# usage:
#####################################################
# directory
[ "$1" = "" ] && return 0
#!/usr/bin/env bash
find "$1" -type d -print0 | xargs -0 chmod 755
find "$1" -type f -print0 | xargs -0 chmod 644
# Fix file permission
# Min. Requirement : GNU/Linux Ubuntu 14.04 & 16.04
# Last Build : 17/07/2019
# Author : ESLabs.ID (eslabs.id@gmail.com)
# Since Version : 1.0.0
# directory
[ "${1}" = "" ] && return 0
find "${1}" -type d -print0 | xargs -0 chmod 755
find "${1}" -type f -print0 | xargs -0 chmod 644