[fix] + fixperms should have a -h option and colors
This commit is contained in:
parent
6a4ee2dc3b
commit
a3627a5f35
|
@ -42,7 +42,6 @@ query="SELECT uid,login FROM membres ORDER BY login"
|
||||||
sub_dir=""
|
sub_dir=""
|
||||||
file=""
|
file=""
|
||||||
LOCK_FIXPERMS="/etc/alternc/disable_all_fixperms"
|
LOCK_FIXPERMS="/etc/alternc/disable_all_fixperms"
|
||||||
LOCK_FIXPERMS="/tmp/test"
|
|
||||||
|
|
||||||
if [ -f "$LOCK_FIXPERMS" ] ; then
|
if [ -f "$LOCK_FIXPERMS" ] ; then
|
||||||
|
|
||||||
|
@ -67,16 +66,14 @@ do
|
||||||
if [[ "$OPTARG" =~ ^[a-zA-Z0-9_]+$ ]] ; then
|
if [[ "$OPTARG" =~ ^[a-zA-Z0-9_]+$ ]] ; then
|
||||||
query="SELECT uid,login FROM membres WHERE login LIKE '$OPTARG' ORDER BY login"
|
query="SELECT uid,login FROM membres WHERE login LIKE '$OPTARG' ORDER BY login"
|
||||||
else
|
else
|
||||||
echo "Bad login provided"
|
usage "Bad login provided"
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"u")
|
"u")
|
||||||
if [[ "$OPTARG" =~ ^[0-9]+$ ]] ; then
|
if [[ "$OPTARG" =~ ^[0-9]+$ ]] ; then
|
||||||
query="SELECT uid,login FROM membres WHERE uid LIKE '$OPTARG' ORDER BY login"
|
query="SELECT uid,login FROM membres WHERE uid LIKE '$OPTARG' ORDER BY login"
|
||||||
else
|
else
|
||||||
echo "Bad uid provided"
|
usage "Bad uid provided"
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"f")
|
"f")
|
||||||
|
|
Loading…
Reference in New Issue