Skip to content

Commit

Permalink
Perbarui hak akses script dari 644 ke 755
Browse files Browse the repository at this point in the history
Jadi mudah untuk menjalankan script di Linux atau macOS. Contoh: Dari "python 1_FOP.py" menjadi "./1_FOP.py"
  • Loading branch information
dikiaap committed Jul 26, 2018
1 parent d912eb2 commit ea6fec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Empty file modified 1_FOP.py 100644 → 100755
Empty file.
7 changes: 4 additions & 3 deletions 2_generate_subscriptions.pl 100644 → 100755
@@ -1,3 +1,4 @@
#!/usr/bin/env perl
#!C:\strawberry\perl\bin -w
# Script for the generation of the EasyList subscriptions
# Copyright 2011 Wladimir Palant and Michael
Expand Down Expand Up @@ -242,17 +243,17 @@ sub convertToTPL
#Remove unnecessary slashes and spaces
$line =~ s/ \/$//;
$line =~ s/ $//;
#Remove beginning and end anchors
unless ($line =~ m/^\|\|/)
{
$line =~ s/^\|//;
}
$line =~ s/\|($|\$)//;
#Translate the script option to "*.js"
$line =~ s/\$script$/\*\.js/;
#Translate whitelists, making them wider if necessary
if ($line =~ m/^@@\|\|.*?(^|\/)/)
{
Expand Down

0 comments on commit ea6fec6

Please sign in to comment.