diff --git a/update.ubuntu.sh b/update.ubuntu.sh
index 6036dc5c650a67cdfa4b524a4ca3df1baa213331..2860cbf10c39396d1f24813c7c21a93497f6bea0 100644
--- a/update.ubuntu.sh
+++ b/update.ubuntu.sh
@@ -55,7 +55,7 @@ else
 	echo "use default"
 fi
 
-echo "method: $method / user: $misskey_user / dir: $misskey_directory /  $misskey_localhost:$misskey_port"
+echo "method: $method / user: $misskey_user / dir: $misskey_directory / $misskey_localhost:$misskey_port"
 
 if [ $method == "systemd" ]; then
 
@@ -80,7 +80,7 @@ npm run migrate;
 MKEOF
 #endregion
 
-if [ $1 == "-r" ]; then
+if [ $# == 1 ] && [ $1 == "-r" ]; then
 	apt update -y;
 	apt full-upgrade -y;
 	reboot;