Allow execution from any working directory
This commit is contained in:
parent
616f7f1faf
commit
6f601b6058
10
install.sh
10
install.sh
|
@ -3,14 +3,16 @@ pkgName=plasma-nm;
|
|||
pkgDir="$pkgName/trunk";
|
||||
patchName="sso.patch";
|
||||
workingDir="$(pwd)";
|
||||
contextDir="$(mktemp -d)";
|
||||
tempDir="$(mktemp -d)";
|
||||
cd "$contextDir";
|
||||
|
||||
yay -G -f "$pkgName";
|
||||
git clone https://invent.kde.org/plasma/plasma-nm.git "$tempDir";
|
||||
cd "$tempDir";
|
||||
git format-patch -1 c1fff723f2e1ee117a10809562c9142103910a70 --stdout > "$workingDir/$pkgDir/1-$patchName";
|
||||
git format-patch -1 6ef64be8645ac32fc0b42df2cee5d9ff3b57e485 --stdout > "$workingDir/$pkgDir/2-$patchName";
|
||||
cd "$workingDir";
|
||||
git format-patch -1 c1fff723f2e1ee117a10809562c9142103910a70 --stdout > "$contextDir/$pkgDir/1-$patchName";
|
||||
git format-patch -1 6ef64be8645ac32fc0b42df2cee5d9ff3b57e485 --stdout > "$contextDir/$pkgDir/2-$patchName";
|
||||
cd "$contextDir";
|
||||
rm -rf "$tempDir";
|
||||
|
||||
cd "$pkgDir";
|
||||
|
@ -31,4 +33,4 @@ sed -i \
|
|||
makepkg -si --skippgpcheck --noconfirm;
|
||||
|
||||
cd "$workingDir";
|
||||
rm -rf "$pkgName";
|
||||
rm -rf "$contextDir";
|
||||
|
|
Loading…
Reference in a new issue