Commit 27268b699a2fd33a120e3d133e0d862cfd4c8603
Fix Makefile's git status check
Grey Nicholson committed on 10/1/2021, 5:06:22 PMParent: ffdd8daff4715410cb83a5d5184b94b3111586ed
Files changed
Makefile | changed |
Makefile | ||
---|---|---|
@@ -30,10 +30,11 @@ | ||
30 | 30 … | exit 1 |
31 | 31 … | else ifeq "${SSHPORT}" "" |
32 | 32 … | @echo "SSHPORT is undefined" |
33 | 33 … | exit 1 |
34 | -else ifneq "$$(git status --porcelain)" "" | |
35 | - @echo "Uncommitted changes" | |
34 … | +else ifneq "$(shell git status --porcelain)" "" | |
35 … | + @echo "Uncommitted changes:" | |
36 … | + @git status --porcelain | |
36 | 37 … | exit 1 |
37 | 38 … | else |
38 | 39 … | echo -e "cd ${SSHDIR} \n put -r output/* \n exit" | \ |
39 | 40 … | sshpass -e sftp -oBatchMode=no -b - sftp://${SSHUSER}@gkn.me.uk:${SSHPORT} |
Built with git-ssb-web