[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] quarks q
Till Bovermann wrote:
> I'm sure we could get this to work...
> I think its a design issue here...
a simple solution is to create the quarks install directory with a
hidden .keep to prevent rmdir removal:
("mkdir" + d + "&& touch" + d +/+ ".keep").systemCmd;
create parent directories of the install path automatically:
this.systemCmd("mkdir -p" + installPath.dirname + "&>/dev/null", false);
this.systemCmd("ln -s" + localPath + installPath);
and remove them in uninstall:
this.systemCmd("rm -f" + installPath);
this.systemCmd("rmdir -p" + installPath.dirname + " &>/dev/null", false);
<sk>