When running the following script, I get a series of "Segmentation faults: 11". (Each of these is also accompanied by "neq all".) That doesn't mean anything to me. Any idea what I should do next?
`#!/usr/bin/env bash
echo "Define address for MYSIDES and get name of current user."
MYSIDES=/usr/local/bin/mysides
dir=$(whoami)
echo "I have determined the current user to be $dir ."
echo "Remove All My Files entry."
$MYSIDES remove All\ My\ Files file:///System/Library/CoreServices/Finder.app/Contents/Resources/MyLibraries/myDocuments.cannedSearch/
echo "Remove iCloud Drive entry."
$MYSIDES remove iCloud x-apple-finder:icloud
echo "Remove Desktop entry."
$MYSIDES remove Desktop file:///Users/${dir}/Desktop
echo "Remove Documents entry."
$MYSIDES remove Documents file:///Users/${dir}/Documents
echo "======================= I have completed my task"`
Here is the output from Terminal:
Redux:~ admin$ su - remotetarget2 -c /Users/admin/dotfiles/5_Script_to_edit_Finder_Sidebar_Favorites_using_mysides.sh
Password:
Entering script /Users/admin/dotfiles/5_Script_to_edit_Finder_Sidebar_Favorites_using_mysides.sh .
Define address for MYSIDES and get name of current user.
I have determined the current user to be remotetarget2 .
Remove All My Files entry.
neq all
/Users/admin/dotfiles/5_Script_to_edit_Finder_Sidebar_Favorites_using_mysides.sh: line 40: 7269 Segmentation fault: 11 $MYSIDES remove All\ My\ Files file:///System/Library/CoreServices/Finder.app/Contents/Resources/MyLibraries/myDocuments.cannedSearch/
Remove iCloud Drive entry.
neq all
/Users/admin/dotfiles/5_Script_to_edit_Finder_Sidebar_Favorites_using_mysides.sh: line 44: 7271 Segmentation fault: 11 $MYSIDES remove iCloud x-apple-finder:icloud
Remove Desktop entry.
neq all
/Users/admin/dotfiles/5_Script_to_edit_Finder_Sidebar_Favorites_using_mysides.sh: line 52: 7272 Segmentation fault: 11 $MYSIDES remove Desktop file:///Users/${dir}/Desktop
Remove Documents entry.
neq all
/Users/admin/dotfiles/5_Script_to_edit_Finder_Sidebar_Favorites_using_mysides.sh: line 56: 7273 Segmentation fault: 11 $MYSIDES remove Documents file:///Users/${dir}/Documents
======================= I have completed my task
Thanks in advance if you have some time to give this some thought!