File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments