LupusE / FlipperMgmt

Flipper management scripts and tools
12 stars 2 forks source link

If the /home/xxx/git folders don't exist, you get a lot of errors #1

Open Tiebe opened 1 year ago

Tiebe commented 1 year ago
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/Flipper-IRDB
du: cannot access '/home/tiebe/git/Flipper-IRDB': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/FlipperAmiibo
du: cannot access '/home/tiebe/git/FlipperAmiibo': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/flipperzero-bruteforce
du: cannot access '/home/tiebe/git/flipperzero-bruteforce': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/Flipper_Zero-BadUsb
du: cannot access '/home/tiebe/git/Flipper_Zero-BadUsb': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/Flipper-Zero-BadUSB
du: cannot access '/home/tiebe/git/Flipper-Zero-BadUSB': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/badusb
du: cannot access '/home/tiebe/git/badusb': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/Flipper_Zero_Badusb_hack5_payloads
du: cannot access '/home/tiebe/git/Flipper_Zero_Badusb_hack5_payloads': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/flipperzero-touchtunes
du: cannot access '/home/tiebe/git/flipperzero-touchtunes': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/FlipperMusicRTTTL
du: cannot access '/home/tiebe/git/FlipperMusicRTTTL': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/flipper-music-files
du: cannot access '/home/tiebe/git/flipper-music-files': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/flipperzero-goodies
du: cannot access '/home/tiebe/git/flipperzero-goodies': No such file or directory
Local size: 
./syncFlipper: 65: cd: can't cd to /home/tiebe/git
./syncFlipper: 66: cd: can't cd to /home/tiebe/git/t119bruteforcer
du: cannot access '/home/tiebe/git/t119bruteforcer': No such file or directory
Local size: 
./syncFlipper: 114: cd: can't cd to /home/tiebe/git
./syncFlipper: 115: cd: can't cd to /home/tiebe/git/Flipper-Starnew
du: cannot access '/home/tiebe/git/Flipper-Starnew': No such file or directory
Local size: 
./syncFlipper: 89: cd: can't cd to /home/tiebe/git
./syncFlipper: 90: cd: can't cd to /home/tiebe/git/Flipper
du: cannot access '/home/tiebe/git/Flipper': No such file or directory
Local size: 
tiebe@tiebe-laptop:~/flipper_zero/sync$ sh syncFlipper
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/Flipper-IRDB
du: cannot access '/home/tiebe/git/Flipper-IRDB': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/FlipperAmiibo
du: cannot access '/home/tiebe/git/FlipperAmiibo': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/flipperzero-bruteforce
du: cannot access '/home/tiebe/git/flipperzero-bruteforce': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/Flipper_Zero-BadUsb
du: cannot access '/home/tiebe/git/Flipper_Zero-BadUsb': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/Flipper-Zero-BadUSB
du: cannot access '/home/tiebe/git/Flipper-Zero-BadUSB': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/badusb
du: cannot access '/home/tiebe/git/badusb': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/Flipper_Zero_Badusb_hack5_payloads
du: cannot access '/home/tiebe/git/Flipper_Zero_Badusb_hack5_payloads': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/flipperzero-touchtunes
du: cannot access '/home/tiebe/git/flipperzero-touchtunes': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/FlipperMusicRTTTL
du: cannot access '/home/tiebe/git/FlipperMusicRTTTL': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 66: cd: can't cd to /home/tiebe/git/flipper-music-files
du: cannot access '/home/tiebe/git/flipper-music-files': No such file or directory
Local size: 
syncFlipper: 65: cd: can't cd to /home/tiebe/git
syncFlipper: 6
LupusE commented 1 year ago

Thanks for your feedback. I added a break at the beginning, if the gitroot is not found. The variable gitroot (default: ~/git) can still be modified.