Browse Source

Updated update skrip to work with new rep0 structure too

Wazakindjes 1 year ago
parent
commit
f2e03ba983
1 changed files with 3 additions and 3 deletions
  1. 3 3
      skrip/updatem.sh

+ 3 - 3
skrip/updatem.sh

@@ -23,7 +23,7 @@ if [ "$relpath" != "." ]; then
 fi
 
 cd ..
-if [[ ! -d u4 ]]; then
+if [[ ! -f HALP.md ]]; then
 	echo "This script doesn't seem to be inside the module repository's root dir"
 	exit 1
 fi
@@ -112,7 +112,7 @@ for muhmod in *.c; do
 
 	# Clean up old .so file to make sure we recompile that shit (lazily)
 	echo "Yes, (attempting to) removing old .so file first"
-	rm "${muhmod%.*}.so" >/dev/null 2>&1
+	rm -vf "${muhmod%.*}.so"
 
 	# Flip makem flag
 	makem=1
@@ -128,7 +128,7 @@ if [[ $makem -eq 1 ]]; then
 
 	# Go into the source root dir and run em
 	cd "$upath"
-	(make && make install && echo -e "\n============\nAll good, now rehash the IRCd") || (echo -e "\n============\nSomething went wrong, review the make output and fix/report any errors")
+	(make && make install && echo -e "\n============\nAll good, now rehash the IRCd") || (echo -e "\n============\nSomething went wrong, review the make output and fix/report any errors, then rerun make && make install")
 
 # Na we GOOD
 else