]> git.phdru.name Git - dotfiles.git/commitdiff
Style: Remove extra spaces
authorOleg Broytman <phd@phdru.name>
Thu, 15 Aug 2019 23:54:23 +0000 (02:54 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 16 Aug 2019 00:00:26 +0000 (03:00 +0300)
.shellrc
bin/recode_filenames.py

index edb29b8d6c863b5d43dc94c76de31bd7b1a17519..1920ed7cc94ddc04b34ea6cc17341ef70f1a4865 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -276,7 +276,7 @@ if test -x /usr/bin/git >/dev/null 2>&1; then
 
       # list remotes with URLs matching a regexp
       _list_remotes() {
-         if [ $#  -ne 1 ]; then
+         if [ $# -ne 1 ]; then
             echo "Usage: _list_remotes remote_regexp" >&2
             return 1
          fi
index 93b76cb607cef5c9346161a594c1b4014c9a9fb3..b9b467266528b4e1922f927c3c248229d25ddfee 100755 (executable)
@@ -1,7 +1,6 @@
 #! /usr/bin/env python
 # -*- coding: koi8-r -*-
 
-
 import sys
 
 src_encoding = sys.argv[1]
@@ -64,5 +63,5 @@ if __name__ == "__main__":
    import os
    for filename in sys.argv[3:]:
       new_name = _recode(filename)
-      if new_name  <> filename:
+      if new_name <> filename:
          os.rename(filename, new_name)