Fix redbean -A asset storing flag

This commit is contained in:
Justine Tunney 2022-08-05 15:04:13 -07:00
parent db8217b37b
commit 84e89a55d4

View file

@ -7275,7 +7275,13 @@ static void GetOpts(int argc, char *argv[]) {
CASE('*', selfmodifiable = true);
CASE('i', interpretermode = true);
CASE('E', leakcrashreports = true);
CASE('A', storeasset = true; StorePath(optarg));
case 'A':
if (!storeasset) {
storeasset = true;
MakeExecutableModifiable();
}
StorePath(optarg);
break;
#endif
#ifndef UNSECURE
CASE('B', suiteb = true);