Fixes return value of shake
This commit is contained in:
parent
fffee1c1e5
commit
e5e303548b
5
bake.c
5
bake.c
@ -198,11 +198,14 @@ expand_size(char * buf, int argc, char ** argv) {
|
||||
|
||||
len = max = strlen(buf) + 1;
|
||||
|
||||
#define str
|
||||
for (i = 0; i < len; ++i) {
|
||||
if (buf[i] == '\\') {
|
||||
i += 2;
|
||||
continue;
|
||||
} else if (buf[i] == '$') {
|
||||
} else if (strncmp())
|
||||
|
||||
else if (buf[i] == '$') {
|
||||
switch (buf[++i]) {
|
||||
case '@':
|
||||
max += strlen(g_filename);
|
||||
|
2
install.sh
Normal file → Executable file
2
install.sh
Normal file → Executable file
@ -2,5 +2,5 @@
|
||||
cd $(dirname "$(readlink -f "$0")")
|
||||
SUDO=${SUDO:-sudo}
|
||||
chmod +x shake
|
||||
./shake bake.c -s
|
||||
./shake bake.c -s $@ && \
|
||||
$SUDO install -m 755 shake bake ${TARGET:-/usr/local/bin}
|
||||
|
Loading…
Reference in New Issue
Block a user