/build/static/layout/Breadcrumb_cap_w.png

Online Shell Script not picking up KACE variables in OSX 10.x script

The following line produces an error:

cp $(KACE_DEPENDENCY_DIR)/nckgahadagoaajjgafhacjanaoiihapd.json

/Library/Application Support/Dell/KACE/data/scripts/275/script.sh: line 13: KACE_DEPENDENCY_DIR: command not found
 

What I need is to get the shellscript to locate the json file being uploaded as a dependency and move that file to another location on the system.   

 


1 Comment   [ + ] Show comment
  • Have you tried to open script.sh in the directory listed above to see what is going on? - Jbr32 10 years ago

Answers (1)

Answer Summary:
Posted by: ST-Matt 10 years ago
White Belt
1

The issue was that the Kace_dependency_dir was adding it's own "/" at the end.  So the script was senidng blah//sldkjwkf instead of blah/kjksdfj

 

 


Comments:
  • Yup. Lots of times that happens within kace. Have to remember that kace engineers are smart - Jbr32 10 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ