diff options
author | Jesús <heckyel@hyperbola.info> | 2021-07-09 15:27:16 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-07-09 15:27:16 -0500 |
commit | 739c821a54c01816e60eb5f774c8977a1e221ea0 (patch) | |
tree | e04a7f5a6fe4d450d43fd45c412f9d415bcb7a7e /utils | |
parent | c1322a4e9a1fb0a286dab1277a740072d0ab30f9 (diff) | |
download | fair-viewer-739c821a54c01816e60eb5f774c8977a1e221ea0.tar.lz fair-viewer-739c821a54c01816e60eb5f774c8977a1e221ea0.tar.xz fair-viewer-739c821a54c01816e60eb5f774c8977a1e221ea0.zip |
upstream
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/auto_perltidy.sh | 2 | ||||
-rwxr-xr-x | utils/bak_cleaner.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/auto_perltidy.sh b/utils/auto_perltidy.sh index 866dcfa..4c6bd7b 100755 --- a/utils/auto_perltidy.sh +++ b/utils/auto_perltidy.sh @@ -3,4 +3,4 @@ alias perltidy='perltidy -utf8 -l=127 -f -kbl=1 -bbb -bbc -bbs -b -ple -bt=2 -pt=2 -sbt=2 -bvt=0 -sbvt=1 -cti=1 -bar -lp -anl'; which perltidy; cd ..; -for i in $(git status | grep '^[[:cntrl:]]*modified:' | egrep 'bin/|\.(pm|t)$' | perl -nE 'say +(split)[-1]'); do echo $i; perltidy -b $i; done +for i in $(git status | grep '^[[:cntrl:]]*modified:' | grep -E 'bin/|\.(pm|t)$' | perl -nE 'say +(split)[-1]'); do echo "$i"; perltidy -b "$i"; done diff --git a/utils/bak_cleaner.sh b/utils/bak_cleaner.sh index cb8340e..3adb916 100755 --- a/utils/bak_cleaner.sh +++ b/utils/bak_cleaner.sh @@ -1,3 +1,3 @@ #!/bin/sh -for i in $(git status | grep \.bak$ | perl -nE 'say +(split)[-1]'); do echo $i; rm $i; done +for i in $(git status | grep \.bak$ | perl -nE 'say +(split)[-1]'); do echo "$i"; rm "$i"; done |