Skip to content

Commit 73c63d1

Browse files
committed
Format code and header
1 parent c1a1658 commit 73c63d1

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

pkg/deb/deb-installation-test.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Test File : deb-installation-test.sh
66
# File Authors : sanchuanhehe <[email protected]>
77
# Contributors : Aoran Zeng <[email protected]>
8-
# |
8+
# |
99
# Created On : <2025-06-14>
1010
# Last Modified : <2025-06-16>
1111
#
@@ -18,38 +18,38 @@ echo "Testing installation of deb package 'chsrc' ..."
1818

1919
# Test 1: Check if chsrc binary exists and is executable
2020
if [ ! -f "/usr/bin/chsrc" ]; then
21-
echo "ERROR: /usr/bin/chsrc not found"
22-
exit 1
21+
echo "ERROR: /usr/bin/chsrc not found"
22+
exit 1
2323
fi
2424

2525
if [ ! -x "/usr/bin/chsrc" ]; then
26-
echo "ERROR: /usr/bin/chsrc is not executable"
27-
exit 1
26+
echo "ERROR: /usr/bin/chsrc is not executable"
27+
exit 1
2828
fi
2929

3030
echo "✓ /usr/bin/chsrc binary exists and is executable"
3131

3232
# Test 2: Check if man page exists
3333
if [ ! -f "/usr/share/man/man1/chsrc.1" ]; then
34-
echo "WARNING: chsrc man page not found at /usr/share/man/man1/chsrc.1"
34+
echo "WARNING: chsrc man page not found at /usr/share/man/man1/chsrc.1"
3535
else
36-
echo "✓ chsrc man page exists"
36+
echo "✓ chsrc man page exists"
3737
fi
3838

3939
# Test 3: Test basic functionality
4040
echo "Testing basic chsrc functionality..."
4141
if /usr/bin/chsrc help >/dev/null 2>&1; then
42-
echo "✓ command 'chsrc help' works"
42+
echo "✓ command 'chsrc help' works"
4343
else
44-
echo "ERROR: command 'chsrc help' failed"
45-
exit 1
44+
echo "ERROR: command 'chsrc help' failed"
45+
exit 1
4646
fi
4747

4848
if /usr/bin/chsrc list >/dev/null 2>&1; then
49-
echo "✓ command 'chsrc list' works"
49+
echo "✓ command 'chsrc list' works"
5050
else
51-
echo "ERROR: command 'chsrc list' failed"
52-
exit 1
51+
echo "ERROR: command 'chsrc list' failed"
52+
exit 1
5353
fi
5454

5555
echo "All installation tests of deb package 'chsrc' passed!"

src/chsrc-main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
* | Mikachu2333 <[email protected]>
3030
* |
3131
* Created On : <2023-08-28>
32-
* Last Modified : <2025-06-16>
32+
* Last Modified : <2025-06-17>
3333
*
3434
* chsrc: Change Source —— 全平台通用命令行换源工具
3535
* ------------------------------------------------------------*/
3636

37-
#define Chsrc_Version "0.2.1.2"
37+
#define Chsrc_Version "0.2.1.2-dev1"
3838
#define Chsrc_Release_Date "2025/06/16"
3939
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
4040
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"

src/recipe/lang/Rust/Cargo.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/** ------------------------------------------------------------
22
* SPDX-License-Identifier: GPL-3.0-or-later
33
* -------------------------------------------------------------
4-
* File Authors : Aoran Zeng <[email protected]>
5-
* Contributors : Nil Null <[email protected]>
6-
* | Mikachu2333 <[email protected]>
4+
* File Authors : Aoran Zeng <[email protected]>
5+
* Contributors : Mikachu2333 <[email protected]>
76
* |
87
* Created On : <2023-08-30>
98
* Last Modified : <2025-06-17>

src/recipe/menu.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/** ------------------------------------------------------------
22
* SPDX-License-Identifier: GPL-3.0-or-later
33
* -------------------------------------------------------------
4-
* File Authors : Aoran Zeng <[email protected]>
5-
* Contributors : Nil Null <[email protected]>
6-
* | Mikachu2333 <[email protected]>
4+
* File Authors : Aoran Zeng <[email protected]>
5+
* Contributors : Mikachu2333 <[email protected]>
76
* |
87
* Created On : <2023-09-01>
98
* Major Revision : 1

0 commit comments

Comments
 (0)