Skip to content

Commit 58a5a4e

Browse files
author
Dirk Petersen (aider)
committed
fix: Make pwalk install errors visible and add verification
1 parent cf29d1b commit 58a5a4e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

install.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,15 +395,22 @@ install_pwalk() {
395395

396396
# Compile pwalk tool and put exec file in froster's binaries folder
397397
echo " Compiling pwalk"
398-
gcc -pthread ${pwalk_path}/pwalk.c ${pwalk_path}/exclude.c ${pwalk_path}/fileProcess.c -o ${pwalk_path}/pwalk 2>&1 | redirect_output &
398+
gcc -pthread ${pwalk_path}/pwalk.c ${pwalk_path}/exclude.c ${pwalk_path}/fileProcess.c -o ${pwalk_path}/pwalk &
399399
spinner $!
400400

401401
# Get the froster's binaries folder
402402
froster_dir=$(dirname "$(readlink -f $(which froster))")
403403
echo " Moving pwalk to froster's binaries folder"
404404

405405
# Move pwalk to froster's binaries folder
406-
mv ${pwalk_path}/pwalk ${froster_dir}/pwalk 2>&1 | redirect_output
406+
mv ${pwalk_path}/pwalk ${froster_dir}/pwalk
407+
408+
# Verify pwalk was moved successfully
409+
if [ ! -f "${froster_dir}/pwalk" ]; then
410+
echo "Error: Failed to move pwalk to ${froster_dir}/pwalk" >&2
411+
exit 1
412+
fi
413+
407414
echo " Installed pwalk at ${froster_dir}/pwalk"
408415

409416
# Delete downloaded pwalk files

0 commit comments

Comments
 (0)