Hey there, Sorry - The title should read "EXIT" code, not Error code. I
have a script policy that uninstalls a specific program. The script when
ran manually from my Desktop works properly, and uninstalls the program
in question. When I run the Polic...
Hi there, I have a shell script that uninstalls a specific program -- it
kills the process if the app is running, looks in three different
directories for anything related to the file and deletes them. When ran
from terminal (if the .sh is on the use...
@KrisMallory Yup, that was it!! I just removed the if [ $# -eq 0 ]; then
container completely, and removed the last fi on Line 55 and tested -
uninstalled my program right away! I can finally breathe! Thank you!
Hmm, no luck.. here is what the Jamf Log shows after making the edits to
my script: Executing Policy Script - Remove ScreenConnect Remote Agent
Running script ScreenConnect Remote Agent Removal... Script exit code: 0
Script result: #!/bin/bash -v exec...
@merps Hey there, thanks for the suggestions! Well whats odd though, is
that the outer IF does evaluate to True when I run the script manually
from terminal instead of allowing Jamf to push its Script Policy.. I'll
try the suggestions you had for me,...
@Hugonaut @mm2270 Wow, I can't believe I missed that.. Thank you guys
for helping out. A little embarrassed haha. So i did remove the "fi"
from line 20 as suggested, and sure enough the script did run
successfully -- apparently.. It does get an exit ...