Skip to content

Commit

Permalink
Merge pull request #656 from osxtest/deleteOutScoped
Browse files Browse the repository at this point in the history
fix(deleteoutscoped): if string is not null
  • Loading branch information
six2dez authored Feb 23, 2023
2 parents 429062b + a18b763 commit 2921921
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reconftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1931,15 +1931,15 @@ function webcache(){
###############################################################################################################

function deleteOutScoped(){
if [ -z "$1" ]; then
if [ ! -z "$1" ]; then
cat $1 | while read outscoped
do
if grep -q "^[*]" <<< $outscoped
if grep -q "^[*]" <<< $outscoped
then
outscoped="${outscoped:1}"
sed -i /"$outscoped$"/d $2
sed -i /"$outscoped$"/d $2
else
sed -i /$outscoped/d $2
sed -i /$outscoped/d $2
fi
done
fi
Expand Down

0 comments on commit 2921921

Please sign in to comment.