The program running under sudo may not get the same environment (e.g., $PATH may be completely different), so it might see different versions of some tools, or complain about missing tools. There are multiple ways for unneeded sudo to break things: If then printf "\033[31 01mMake finished with errors\n\033[0m" & exit 1 fi ⚠ "git describe -abbrev=6 -dirty -always -tags" returned error code 128īuilddefs/build_keyboard.mk:49: *** multiple target patterns. # The sort at this point is to remove duplicatesĮrror_occurred=0 printf "Making \033 then error_occurred=1 fi if then echo $error_occurred >. # But we return the error code at the end, to trigger travis failures # This always tries to compile everything, even if error occurs in the middle # it has to be there to allow parallel execution of the submake # Run all the commands in the same shell, notice the + at the first line Running the same command using sudo shows a bit more info: *) printf "\033[33 01mWARNING:\033[0m Some git submodules are out of date or modified.\n Please consider running \033[1mmake git-submodule\033[0m.\n\n" break \ Git submodule status -recursive 2>/dev/null | \ If then git submodule sync lib/printf & git submodule update -depth 50 -init lib/printf fi If then git submodule sync lib/vusb & git submodule update -depth 50 -init lib/vusb fi If then git submodule sync lib/lufa & git submodule update -depth 50 -init lib/lufa fi If then git submodule sync lib/chibios-contrib & git submodule update -depth 50 -init lib/chibios-contrib fi If then git submodule sync lib/chibios & git submodule update -depth 50 -init lib/chibios fi # Check if the submodules are dirty, and display a warning if they are If ! qmk hello 1> /dev/null 2>&1 then printf "\033[31 01mERROR:\033[0m Cannot run \"qmk hello\"!\n\n Please run \033[1mqmk setup\033[0m to install all the dependencies QMK requires.\n\n" exit 1 fi Makefile >/dev/null 2>&1 if then printf "\033[31 01mError:\033[0m\033[1m cmp command not found, please install diffutils\n\033[0m" exit 1 fi # Check if we have the CMP tool installedĬmp.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |