I have a script which before being launched checks via pwd if the path upon launch is something specific (say dir/subdir/script)
current_folder=$(pwd | grep dir/subdir/script)
if [ "$current_folder" == "" ]; then
{
echo "something bad"
exit
}
fi
how can this script be launched via crontab? I cannot remove the check with pwd or amend the script content under any circumstance since it's subject to continuous updates that would be replaced
Thanks everyone