dbarison
2/2/2018 - 2:14 PM

gistfile1.txt

+ PATH=/bin:/sbin:/usr/bin:/usr/sbin
+ export PATH
+ appid=Firefox
+ appbin=firefox-bin
+ userprefbase='Library/Application Support'
+ userpref='/Users/davide/Library/Application Support/Firefox/Profiles'
+ usercachebase=/Users/davide/Library/Caches
+ usercache=/Users/davide/Library/Caches/Firefox
+ p_userbase='/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources'
+ p_userpref='/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/profile'
+ copy_pref='/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/CopyPref_Done'
+ CD='/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/CocoaDialog.app/Contents/MacOS/CocoaDialog'
+ appicon='/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/appIcon.icns'
+ cautionicon='/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/P_Firefox_Caution.icns'
+ bsd_command_check
+ commands='awk cp defaults diskutil echo grep ln mkfifo mkdir mv plutil ps rm sed sleep touch'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/awk -a '!' -x /bin/awk -a '!' -x /usr/sbin/awk -a '!' -x /sbin/awk ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/cp -a '!' -x /bin/cp -a '!' -x /usr/sbin/cp -a '!' -x /sbin/cp ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/defaults -a '!' -x /bin/defaults -a '!' -x /usr/sbin/defaults -a '!' -x /sbin/defaults ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/diskutil -a '!' -x /bin/diskutil -a '!' -x /usr/sbin/diskutil -a '!' -x /sbin/diskutil ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/echo -a '!' -x /bin/echo -a '!' -x /usr/sbin/echo -a '!' -x /sbin/echo ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/grep -a '!' -x /bin/grep -a '!' -x /usr/sbin/grep -a '!' -x /sbin/grep ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/ln -a '!' -x /bin/ln -a '!' -x /usr/sbin/ln -a '!' -x /sbin/ln ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/mkfifo -a '!' -x /bin/mkfifo -a '!' -x /usr/sbin/mkfifo -a '!' -x /sbin/mkfifo ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/mkdir -a '!' -x /bin/mkdir -a '!' -x /usr/sbin/mkdir -a '!' -x /sbin/mkdir ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/mv -a '!' -x /bin/mv -a '!' -x /usr/sbin/mv -a '!' -x /sbin/mv ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/plutil -a '!' -x /bin/plutil -a '!' -x /usr/sbin/plutil -a '!' -x /sbin/plutil ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/ps -a '!' -x /bin/ps -a '!' -x /usr/sbin/ps -a '!' -x /sbin/ps ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/rm -a '!' -x /bin/rm -a '!' -x /usr/sbin/rm -a '!' -x /sbin/rm ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/sed -a '!' -x /bin/sed -a '!' -x /usr/sbin/sed -a '!' -x /sbin/sed ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/sleep -a '!' -x /bin/sleep -a '!' -x /usr/sbin/sleep -a '!' -x /sbin/sleep ']'
+ for i in '$commands'
+ '[' '!' -x /usr/bin/touch -a '!' -x /bin/touch -a '!' -x /usr/sbin/touch -a '!' -x /sbin/touch ']'
+ osx_version_check
+ '[' -x /usr/bin/sw_vers ']'
++ /usr/bin/sw_vers
++ grep '^ProductVersion:'
++ awk '{ print $2 }'
+ version=10.12.6
+ case "$version" in
+ check_p_asf
++ diskutil info '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources'
++ grep 'Read Only'
++ awk '{ print $3 }'
+ readonly5=
++ diskutil info '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources'
++ grep 'Read-Only Volume'
++ awk '{ print $3 }'
+ readonly6=
+ '[' '' = Yes ']'
+ '[' '' = Yes ']'
+ '[' '!' -d '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/profile' ']'
+ quitapp
+ ps cx
+ grep '[0-9] firefox-bin$'
+ copy_local_pref
+ '[' '!' -f '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/CopyPref_Done' ']'
+ '[' -d '/Users/davide/Library/Application Support/Firefox/Profiles' ']'
+ beep
+ /usr/bin/osascript
+ text='Copy local Profile'
+ informativetext='Copy the existing Firefox Profile on this system to Portable Firefox?'
++ '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/CocoaDialog.app/Contents/MacOS/CocoaDialog' msgbox --no-newline --icon-file '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/appIcon.icns' --text 'Copy local Profile' --informative-text 'Copy the existing Firefox Profile on this system to Portable Firefox?' --button1 Copy --button2 'Don'\''t Copy' --button3 Never
/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/script: line 279: /Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/CocoaDialog.app/Contents/MacOS/CocoaDialog: Bad CPU type in executable
+ rv=
+ '[' '' == 1 ']'
+ '[' '' == 3 ']'
+ open_p_app
+ set_p_app
+ bu_cache
+ '[' -d /Users/davide/Library/Caches/Firefox ']'
+ run_app
+ '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/Firefox.app/Contents/MacOS/firefox-bin' -profile '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/profile'
+ '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/CocoaDialog.app/Contents/MacOS/CocoaDialog' bubble --title 'Portable Firefox setup ok' --text 'Portable Firefox open with success.' --icon-file '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/appIcon.icns'
/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/script: line 337: /Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/CocoaDialog.app/Contents/MacOS/CocoaDialog: Bad CPU type in executable
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
+ close_p_app
+ remove_p_cache
+ '[' -d /Users/davide/Library/Caches/Firefox ']'
+ rm -rf /Users/davide/Library/Caches/Firefox
+ recover_cache
+ '[' -d /Users/davide/Library/Caches/Firefox.pabu ']'
+ exit 0
+ '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/CocoaDialog.app/Contents/MacOS/CocoaDialog' bubble --title 'Portable Firefox quit' --text 'Portable Firefox quit with success.' --icon-file '/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/appIcon.icns'
/Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/script: line 347: /Volumes/BUSINESSKEY/Mac/Utilities/Portable Firefox.app/Contents/Resources/CocoaDialog.app/Contents/MacOS/CocoaDialog: Bad CPU type in executable