File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 33# exit whenever a command called in this script fails
44set -e
55
6+
7+ verbose=()
68if [ " $DEBUG " != " " ]; then
79 set -x
8- verbose= " --verbose"
10+ verbose+=( " --verbose" )
911fi
1012
1113appdir=" "
@@ -55,15 +57,15 @@ if [ -z "$LINUXDEPLOY_PLUGIN_GDB_SRC" ]; then
5557fi
5658
5759echo " Copying source files"
58- cp --recursive $ verbose " $LINUXDEPLOY_PLUGIN_GDB_SRC " " $appdir /usr/"
60+ cp --recursive " ${ verbose[@]} " " $LINUXDEPLOY_PLUGIN_GDB_SRC " " $appdir /usr/"
5961
6062echo " Installing new AppRun wrapper"
6163# AppRun script does: exec "$this_dir"/AppRun.wrapped "$@"
6264# AppRun.wrapped (this script) is a wrapper on AppRun.wrapped.orig
6365# AppRun.wrapped.orig is the real application
6466old_exe=" $( readlink -f " $appdir /AppRun.wrapped" ) "
6567new_exe=" $old_exe .orig"
66- mv $ verbose " $old_exe " " $new_exe "
68+ mv " ${ verbose[@]} " " $old_exe " " $new_exe "
6769cat > " $old_exe " << EOF
6870#! /bin/bash
6971
7375 exec "\$ APPDIR/${new_exe# " $appdir " } " "\$ @"
7476fi
7577EOF
76- chmod $ verbose 755 " $old_exe "
78+ chmod " ${ verbose[@]} " 755 " $old_exe "
You can’t perform that action at this time.
0 commit comments