issues
search
divegeek
/
uscode
The United States Code
http://uscode.house.gov/download/download.shtml
812
stars
57
forks
source link
Kinda big Refactoring...
#14
Closed
jpartain89
closed
3 months ago
jpartain89
commented
7 years ago
Made the code MUCH easier to read
Changed from
sh
to
bash
for better code - in general
Added
-e
flag to the shebang for fail-first
Added the
DIR
variable, so the script is more portable for other people's machines
Changed the LOGFILE to being inside the repo
Changed the
touch
logfile so that its wrapped in an
if
block. No need to waste the command
Removed the
cd
as git has a flag,
-C
for picking the directory you wanna work from, no matter where in the filesystem you are at
if
blocked the
rm
item, no need to remove something that doesn't exist
And please see note about that final
if
block..
sh
tobash
for better code - in general-e
flag to the shebang for fail-firstDIR
variable, so the script is more portable for other people's machinestouch
logfile so that its wrapped in anif
block. No need to waste the commandcd
as git has a flag,-C
for picking the directory you wanna work from, no matter where in the filesystem you are atif
blocked therm
item, no need to remove something that doesn't existif
block..