mirror of
https://git.lain.church/bake/bake.git
synced 2025-05-16 16:46:44 +00:00
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;
|
len = max = strlen(buf) + 1;
|
||||||
|
|
||||||
|
#define str
|
||||||
for (i = 0; i < len; ++i) {
|
for (i = 0; i < len; ++i) {
|
||||||
if (buf[i] == '\\') {
|
if (buf[i] == '\\') {
|
||||||
i += 2;
|
i += 2;
|
||||||
continue;
|
continue;
|
||||||
} else if (buf[i] == '$') {
|
} else if (strncmp())
|
||||||
|
|
||||||
|
else if (buf[i] == '$') {
|
||||||
switch (buf[++i]) {
|
switch (buf[++i]) {
|
||||||
case '@':
|
case '@':
|
||||||
max += strlen(g_filename);
|
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")")
|
cd $(dirname "$(readlink -f "$0")")
|
||||||
SUDO=${SUDO:-sudo}
|
SUDO=${SUDO:-sudo}
|
||||||
chmod +x shake
|
chmod +x shake
|
||||||
./shake bake.c -s
|
./shake bake.c -s $@ && \
|
||||||
$SUDO install -m 755 shake bake ${TARGET:-/usr/local/bin}
|
$SUDO install -m 755 shake bake ${TARGET:-/usr/local/bin}
|
||||||
|
2
shake
2
shake
@ -63,7 +63,7 @@ if [[ -n $line ]]; then
|
|||||||
echo "Exec: $command"
|
echo "Exec: $command"
|
||||||
if [[ $run -eq 1 ]]; then
|
if [[ $run -eq 1 ]]; then
|
||||||
echo "Output:"
|
echo "Output:"
|
||||||
eval "$command"
|
$command
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "${MARKSTR} is not defined." >&2
|
echo -e "${MARKSTR} is not defined." >&2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user