liuchunhao commented on code in PR #5561:
URL: https://github.com/apache/gravitino/pull/5561#discussion_r1839470288


##########
dev/release/check-license.sh:
##########
@@ -0,0 +1,60 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This script checks if all the files mentioned in the LICENSE file are 
present in the project.
+# Besides highlighting the missing files, it will display possible locations 
for any new files.
+# It adds text like [NOT FOUND] --> "new/path/to/the/file" in the end of the 
line where the file is missing.
+# With the output of this script, you can update the LICENSE file with the 
correct file paths.
+
+FAILED=0
+
+PROJECT_ROOT=$(dirname $(dirname $(dirname $(readlink -f "$0"))))

Review Comment:
   Hi,  I've adjusted as requested and ensure the update works on both Mac and 
Linux. 
   I think the "#!/usr/bin/env bash" can provide the best compatibility across 
different systems
   
   Below is the test result on ubuntu 22.04
   <img width="1187" alt="Screenshot 2024-11-13 at 1 43 44 PM" 
src="https://github.com/user-attachments/assets/57bb0112-6934-4890-9064-69f0b355dca5";>
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to