mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -04:00
port-jobs: Added script for converting between spaces and tabs
Former-commit-id: d3a1fcfcc5d9ddacfdbb3bae7726f978380e70ac Former-commit-id: ab8e4e01699bbe2e98e33d11e24cce9aedf20a9e
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
if [ "$1" = 'TABS' ]; then
|
||||
unexpand -t 4 working/sshyp.py > working/sshyp.py.new
|
||||
unexpand -t 4 working/sshync.py > working/sshync.py.new
|
||||
else
|
||||
expand -t 4 working/sshyp.py > working/sshyp.py.new
|
||||
expand -t 4 working/sshync.py > working/sshync.py.new
|
||||
fi
|
||||
mv working/sshyp.py.new working/sshyp.py
|
||||
mv working/sshync.py.new working/sshync.py
|
||||
chmod +x working/sshyp.py working/sshync.py
|
||||
Reference in New Issue
Block a user