mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
removed unnecessary sed expr defenition
This commit is contained in:
parent
5afa0f4a00
commit
861585bcca
30 changed files with 74 additions and 74 deletions
|
@ -149,10 +149,10 @@ decrease_ip_value() {
|
|||
check_ip=$(grep $sip $USER_DATA/web.conf |wc -l)
|
||||
if [ "$check_ip" -lt 2 ]; then
|
||||
new_usr=$(echo "$current_usr" |\
|
||||
sed -e "s/,/\n/g"|\
|
||||
sed -e "s/^$user$//g"|\
|
||||
sed -e "/^$/d"|\
|
||||
sed -e ':a;N;$!ba;s/\n/,/g')
|
||||
sed "s/,/\n/g"|\
|
||||
sed "s/^$user$//g"|\
|
||||
sed "/^$/d"|\
|
||||
sed ':a;N;$!ba;s/\n/,/g')
|
||||
else
|
||||
new_usr="$current_usr"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue