File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/linux/Packaging.Linux Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ if [ $INSTALL_FROM_SOURCE = false ]; then
181
181
182
182
# Build .deb
183
183
INSTALL_TO=" $DEBROOT /usr/local/share/gcm-core/"
184
- LINK_TO=" $DEBROOT /usr/bin/"
184
+ LINK_TO=" $DEBROOT /usr/local/ bin/"
185
185
mkdir -p " $DEBROOT /DEBIAN" " $INSTALL_TO " " $LINK_TO " || exit 1
186
186
187
187
# make the debian control file
@@ -201,8 +201,6 @@ Description: Cross Platform Git Credential Manager command line utility.
201
201
including GitHub, BitBucket, and Azure DevOps.
202
202
For more information see https://aka.ms/gcm
203
203
EOF
204
-
205
- dpkg-deb --build " $DEBROOT " " $DEBPKG " || exit 1
206
204
else
207
205
echo " Installing..."
208
206
@@ -217,10 +215,14 @@ mkdir -p "$INSTALL_TO" "$LINK_TO"
217
215
# Copy all binaries and shared libraries to target installation location
218
216
cp -R " $PAYLOAD " /* " $INSTALL_TO " || exit 1
219
217
218
+ if [ $INSTALL_FROM_SOURCE = false ]; then
219
+ dpkg-deb --build " $DEBROOT " " $DEBPKG " || exit 1
220
+ fi
221
+
220
222
# Create symlink
221
223
if [ ! -f " $LINK_TO /git-credential-manager-core" ]; then
222
224
ln -s -r " $INSTALL_TO /git-credential-manager-core" \
223
225
" $LINK_TO /git-credential-manager-core" || exit 1
224
226
fi
225
227
226
- echo $MESSAGE
228
+ echo $MESSAGE
You can’t perform that action at this time.
0 commit comments