Comment 2 for bug 1054903

Revision history for this message
Tamlin (storyjesse-gmail) wrote :

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.