Oops Sorry that workaround should have been...
<quote>
if [ -d "/var/cache/apt/archives" ]; then echo "/var/cache/apt/archives exists"; else mkdir /var/cache/apt/archives; fi || die "Command failed: mkdir /var/cache/apt/archives"
</quote>
note the -d & quotes added to the test... if [ -d "/var/cache/apt/archives" ];
Without this it will always return true and never create the directory even when it doesn't exist.
Oops Sorry that workaround should have been... apt/archives" ]; then echo "/var/cache/ apt/archives exists"; else mkdir /var/cache/ apt/archives; fi || die "Command failed: mkdir /var/cache/ apt/archives"
<quote>
if [ -d "/var/cache/
</quote>
note the -d & quotes added to the test... if [ -d "/var/cache/ apt/archives" ];
Without this it will always return true and never create the directory even when it doesn't exist.