3 ms·
On a related note, I saw this piece of code in a vendor's install script. Not a Debian package, but an executable install script. One of the environment variabl
by amyjess 8y ago
On a related note, I saw this piece of code in a vendor's install script. Not a Debian package, but an executable install script. One of the environment variables has been censored to anonymize the vendor, but everything else is verbatim.
# Delete & recreate directory <BLAH>/Patches/<patchLevel>/
# This will confirm write access to BLAH_HOME
rm -rf $BLAH_HOME/Patches/${PATCH_VERSION}_${PATCH_LEVEL}
mkdir -p $BLAH_HOME/Patches/${PATCH_VERSION}_${PATCH_LEVEL}
This is horryfing. No checking the contents of the environment variables. No checking the return codes. WTF.
(and IIRC if you google the snippet, you can find where a coworker of mine posted it to Reddit to lampoon it)