瀏覽代碼

Fix for musare.sh

Owen Diffey 4 年之前
父節點
當前提交
1a2b17018f
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      musare.sh

+ 5 - 2
musare.sh

@@ -6,6 +6,9 @@ YELLOW='\033[0;93m'
 GREEN='\033[0;32m'
 NC='\033[0m'
 
+scriptLocation="$(dirname -- $(readlink -fn -- "$0"; echo x))"
+cd "${scriptLocation%x}"
+
 handleServices()
 {
     validServices=(backend frontend mongo redis)
@@ -258,7 +261,7 @@ if [[ -x "$(command -v docker)" && -x "$(command -v docker-compose)" ]]; then
         echo -e "${YELLOW}eslint - Run eslint on frontend and/or backend${NC}"
         echo -e "${YELLOW}backup - Backup database data to file${NC}"
         echo -e "${YELLOW}restore - Restore database data from backup file${NC}"
-        echo -e "${YELLOW}reset - Reset service Data${NC}"
+        echo -e "${YELLOW}reset - Reset service data${NC}"
         echo -e "${YELLOW}admin [add,remove] - Assign/unassign admin role to/from a user${NC}"
         ;;
 
@@ -276,7 +279,7 @@ if [[ -x "$(command -v docker)" && -x "$(command -v docker-compose)" ]]; then
         echo -e "${YELLOW}eslint - Run eslint on frontend and/or backend${NC}"
         echo -e "${YELLOW}backup - Backup database data to file${NC}"
         echo -e "${YELLOW}restore - Restore database data from backup file${NC}"
-        echo -e "${YELLOW}reset - Reset service Data${NC}"
+        echo -e "${YELLOW}reset - Reset service data${NC}"
         echo -e "${YELLOW}admin [add,remove] - Assign/unassign admin role to/from a user${NC}"
         ;;